/* See You There — marketing site, gallery and editor chrome */
[hidden] { display: none !important; }
:root {
  --paper: #F3F5F2; --card: #FFFFFF; --ink: #1F2A44; --ink-soft: #4A5570; --seal: #9F1239;
  --seal-soft: #F9E8EC; --sage: #5A6A50; --line: #D8DDD6;
  --display: "Gloock", Georgia, serif; --body: "Hanken Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font-family: var(--display); font-size: 1.375rem; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--seal); }
.site-nav { display: flex; gap: 22px; margin: 0 auto; font-weight: 500; font-size: .975rem; }
.site-nav a, .site-nav button { white-space: nowrap; text-decoration: none; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav button:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--seal); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: var(--paper);
  text-decoration: none; font: 600 1rem var(--body); border: 1px solid var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { background: var(--seal); border-color: var(--seal); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.seal { background: var(--seal); border-color: var(--seal); }
.btn.seal:hover { background: var(--ink); border-color: var(--ink); }
.btn.sm { padding: 8px 16px; font-size: .9rem; }

/* Generic sections */
.sec { padding: 96px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 14px; }
.sec-head p { color: var(--ink-soft); margin: 0; font-size: 1.125rem; }

/* Tilted hero phones may poke past the edge; never let them cause sideways scrolling */
html, body { overflow-x: clip; }

/* Home hero */
.home-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 64px 0 88px; }
.home-hero h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); line-height: 1.02; margin: 0 0 22px; letter-spacing: -0.02em; }
.home-hero p { font-size: 1.25rem; color: var(--ink-soft); max-width: 36ch; margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px !important; font-size: .95rem !important; }
.phones { position: relative; height: 600px; }
.phone { position: absolute; width: 270px; height: 560px; border-radius: 40px; background: #1d1d22; padding: 10px; box-shadow: 0 40px 80px -40px rgba(31,42,68,.6); }
.phone .screen { width: 100%; height: 100%; border-radius: 31px; overflow: hidden; position: relative; background: #fff; }
.phone .screen::before { content: ""; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 84px; height: 22px; background: #1d1d22; border-radius: 20px; z-index: 5; }
.phone iframe { width: 390px; height: 809px; border: 0; transform: scale(.641); transform-origin: 0 0; }
.phone.p1 { left: 0; top: 50px; transform: rotate(-8deg); }
.phone.p2 { left: 50%; top: 0; translate: -50% 0; z-index: 2; }
.phone.p3 { right: 0; top: 50px; transform: rotate(8deg); }
.phone.p1, .phone.p3 { animation: drift 8s ease-in-out infinite; }
.phone.p3 { animation-delay: -4s; }
@keyframes drift { 50% { translate: 0 -12px; } }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat { text-decoration: none; display: block; }
.cat .thumb-box { aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; position: relative; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.cat:hover .thumb-box { transform: translateY(-6px); }
.cat h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 16px 0 2px; }
.cat p { margin: 0; color: var(--ink-soft); }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 22px; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--seal); display: block; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.feature .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--seal-soft); color: var(--seal); display: grid; place-items: center; }
.feature h3 { margin: 2px 0 4px; font-size: 1.0625rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .975rem; }

.cta-band { background: var(--ink); color: var(--paper); text-align: center; padding: 96px 24px; }
.cta-band h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.cta-band p { color: #B9C0D0; max-width: 50ch; margin: 0 auto 30px; }
.cta-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-band .btn:hover { background: var(--seal); color: #fff; border-color: var(--seal); }

.site-foot { padding: 48px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--seal); }

/* Templates page */
.page-head { padding: 48px 0 28px; }
.page-head h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin: 0 0 6px; line-height: 1.05; }
.page-head p { margin: 0; color: var(--ink-soft); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 32px; }
.search { position: relative; flex: 1 1 280px; max-width: 380px; }
.search input { width: 100%; font: inherit; font-size: .975rem; padding: 11px 14px 11px 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.search .ico { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--ink-soft); }
.chip { font: 500 .95rem var(--body); display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip small { font-size: .78rem; color: var(--ink-soft); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"] small { color: #B9C0D0; }
.chip .ico { width: 16px; height: 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 36px 22px; }
.tcard .thumb { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; position: relative;
  box-shadow: 0 1px 0 var(--line), 0 18px 30px -24px rgba(31,42,68,.5); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; text-align: inherit; font: inherit; color: inherit; }
.tcard .thumb:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--line), 0 28px 40px -24px rgba(31,42,68,.6); }
.tcard .thumb .peek { position: absolute; inset: auto 12px 12px; z-index: 3; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 99px; padding: 8px; font-weight: 600; font-size: .9rem; text-align: center; opacity: 0; translate: 0 8px; transition: opacity .25s, translate .25s; }
.tcard .thumb:hover .peek, .tcard .thumb:focus-visible .peek { opacity: 1; translate: 0 0; }
.tag { position: absolute; top: 10px; left: 10px; z-index: 3; background: rgba(255,255,255,.92); color: var(--ink); font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.tcard h3 { font-size: 1.0625rem; margin: 14px 0 0; font-weight: 600; }
.tcard .meta { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.price-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.price-row b { font-size: 1.125rem; }
.price-row s { color: var(--ink-soft); font-size: .875rem; }
.price-row em { font-style: normal; font-size: .75rem; font-weight: 600; color: var(--seal); background: var(--seal-soft); padding: 2px 7px; border-radius: 99px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn .ico { width: 17px; height: 17px; }
.price-row .icon-btn:first-of-type { margin-left: auto; }
.icon-btn[aria-pressed="true"] { color: var(--seal); border-color: var(--seal); }
.icon-btn[aria-pressed="true"] .ico { fill: var(--seal); }
.empty { text-align: center; padding: 64px 0; color: var(--ink-soft); }
.empty h3 { color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 1.75rem; margin: 0 0 8px; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(20,24,36,.55); display: grid; place-items: center; padding: 20px; animation: mfade .2s; }
@keyframes mfade { from { opacity: 0; } }
.modal-box { background: var(--card); border-radius: 22px; width: min(1180px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; animation: mrise .3s cubic-bezier(.2,.7,.2,1); }
@keyframes mrise { from { transform: translateY(20px); opacity: 0; } }
.modal-head { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-family: var(--body); font-weight: 600; font-size: 1.25rem; margin: 0; letter-spacing: 0; }
.modal-head .sub { margin: 0; color: var(--ink-soft); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42ch; }
.badge { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); vertical-align: middle; margin-left: 6px; }
.devices { display: flex; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-left: auto; }
.devices button { font: 500 .9rem var(--body); display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 9px; background: none; color: var(--ink); cursor: pointer; }
.devices button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.devices .ico { width: 16px; height: 16px; }
.x-btn { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.preview-body { display: grid; grid-template-columns: 1fr 320px; min-height: 0; flex: 1; }
.stage { background: #EEF1F4; display: grid; place-items: center; padding: 24px; min-height: 0; overflow: hidden; position: relative; }
.device { position: relative; flex: none; transform-origin: center; }
.device iframe { border: 0; width: 100%; height: 100%; display: block; background: #fff; }
.device.mobile { background: #1d1d22; border-radius: 48px; padding: 12px; }
.device.mobile iframe { border-radius: 36px; }
.device.tablet { background: #1d1d22; border-radius: 28px; padding: 16px; }
.device.tablet iframe { border-radius: 14px; }
.device.desktop { background: #1d1d22; border-radius: 12px; padding: 28px 8px 8px; }
.device.desktop::before { content: ""; position: absolute; top: 10px; left: 14px; width: 40px; height: 8px; background: radial-gradient(circle, #ff5f57 3.5px, transparent 4px) 0 0 / 14px 8px repeat-x; }
.specs { border-left: 1px solid var(--line); padding: 24px; overflow-y: auto; }
.specs h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 0 0 6px; }
.specs > p { color: var(--ink-soft); margin: 0 0 20px; font-size: .95rem; }
.price-box { border: 1px solid #F0C9D3; background: var(--seal-soft); border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; }
.price-box small { display: block; color: var(--seal); font-weight: 600; font-size: .8rem; }
.price-box b { font-size: 1.75rem; }
.price-box s { color: var(--ink-soft); margin-left: 8px; }
.inc h4 { margin: 0 0 8px; font-size: .975rem; display: flex; gap: 8px; align-items: center; }
.inc ul { list-style: none; margin: 0 0 22px; padding: 0; }
.inc li { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: .95rem; color: var(--ink-soft); }
.inc li .ico { width: 17px; height: 17px; color: var(--sage); }
.specs .btn { width: 100%; }

.feat-box { width: min(820px, 100%); padding: 36px; overflow-y: auto; position: relative; }
.feat-box h2 { margin: 0 0 6px; }
.feat-box > p { color: var(--ink-soft); margin: 0 0 28px; }
.feat-box .x-btn { position: absolute; top: 20px; right: 20px; }
.feat-box .features { grid-template-columns: repeat(2, 1fr); gap: 26px 32px; }

.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 0; background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 99px; z-index: 200; font-weight: 500; animation: mrise .25s; }

/* About page bits */
.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.1em; color: var(--ink-soft); }
.prose p.lead { color: var(--ink); font-size: 1.25rem; }
blockquote { margin: 32px 0; padding: 0 0 0 24px; border-left: 3px solid var(--seal); font-family: var(--display); font-size: 1.75rem; line-height: 1.25; color: var(--ink); }
.timeline { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 1px; background: var(--line); }
.timeline li { position: relative; padding-top: 40px; }
.timeline li::before { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.timeline li:last-child::before { background: var(--seal); border-color: var(--seal); }
.timeline .year { font-family: var(--display); font-size: 2.5rem; line-height: 1; display: block; margin-bottom: 8px; }
.timeline h3 { font-size: 1.125rem; margin: 0 0 6px; }
.timeline p { margin: 0; color: var(--ink-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.build { list-style: none; margin: 0; padding: 0; }
.build li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
.build li::before { content: "✓"; color: var(--sage); font-weight: 600; }
.motto { font-family: var(--display); font-size: 1.75rem; line-height: 1.25; margin: 32px 0 0; color: var(--ink) !important; }

/* The full nav needs about 1260px; collapse it into the menu before it overflows */
@media (max-width: 1260px) {
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a, .site-nav button { padding: 12px 0; text-align: left; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; margin-left: 4px; }
  .site-head .head-cta { margin-left: auto; }
}
@media (max-width: 960px) {
  .site-head .head-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .home-hero, .split { grid-template-columns: 1fr; }
  .phones { height: 520px; max-width: 520px; width: 100%; margin: 0 auto; }
  .phone { width: 230px; height: 478px; }
  .phone iframe { transform: scale(.538); height: 852px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .steps, .features, .timeline { grid-template-columns: 1fr; }
  .preview-body { grid-template-columns: 1fr; overflow-y: auto; }
  .stage { min-height: 70vh; }
  .specs { border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .modal-head { flex-wrap: wrap; }
  .modal-head .head-customize { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 72px 0; }
  .phones { height: 440px; }
  .phone { width: 200px; height: 416px; border-radius: 32px; padding: 8px; }
  .phone .screen { border-radius: 25px; }
  .phone iframe { transform: scale(.472); height: 865px; }
  .phone.p1 { left: -20px; } .phone.p3 { right: -20px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .feat-box { padding: 28px 20px; }
  .feat-box .features { grid-template-columns: 1fr; }
  .devices button span { display: none; }
  .modal { padding: 0; }
  .modal-box { border-radius: 0; max-height: 100vh; height: 100%; }
}
/* ---------- Motion (only when JS adds .js-motion, which it skips for reduced motion) ---------- */
.site-head { transition: box-shadow .3s, background-color .3s; }
.site-head.scrolled { box-shadow: 0 10px 30px -22px rgba(31,42,68,.45); }

/* Hero: words rise from a mask, then the phones fan open */
.js-motion .home-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js-motion .home-hero h1 .w > span { display: inline-block; animation: wordUp .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(120ms + var(--w) * 70ms); }
@keyframes wordUp { from { transform: translateY(105%); } }
.js-motion .home-hero h1 ~ * { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: .65s; }
.js-motion .home-hero h1 ~ * + * { animation-delay: .78s; }
.js-motion .home-hero h1 ~ * + * + * { animation-delay: .9s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.phones { translate: 0 var(--py, 0); }
.js-motion .phone.p2 { animation: phoneUp 1s cubic-bezier(.2,.8,.2,1) .35s both; }
.js-motion .phone.p1 { animation: fanL 1.1s cubic-bezier(.2,.8,.2,1) .7s both, drift 8s ease-in-out 1.8s infinite; }
.js-motion .phone.p3 { animation: fanR 1.1s cubic-bezier(.2,.8,.2,1) .8s both, drift 8s ease-in-out -2.2s infinite; }
@keyframes phoneUp { from { opacity: 0; scale: .92; margin-top: 40px; } }
@keyframes fanL { from { opacity: 0; rotate: 8deg; scale: .9; } }
@keyframes fanR { from { opacity: 0; rotate: -8deg; scale: .9; } }

/* Scroll reveals */
.js-motion [data-rv] { opacity: 0; translate: 0 28px; transition: opacity .8s ease, translate .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 85ms); }
.js-motion [data-rv].in { opacity: 1; translate: 0 0; }
.js-motion .tcard[data-rv], .js-motion .cat[data-rv] { translate: 0 40px; scale: .97; transition-property: opacity, translate, scale; }
.js-motion .tcard[data-rv].in, .js-motion .cat[data-rv].in { scale: 1; }
/* Steps are a sequence: the rule above each one draws in, in order */
.steps li { border-top: 0; position: relative; }
.steps li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ink); transform-origin: left; }
.js-motion .steps li[data-rv]::after { transform: scaleX(0); transition: transform 1s cubic-bezier(.6,0,.2,1); transition-delay: calc(200ms + var(--d, 0) * 260ms); }
.js-motion .steps li[data-rv].in::after { transform: scaleX(1); }
.js-motion .feature[data-rv] .fi { scale: .6; transition: scale .6s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(150ms + var(--d, 0) * 85ms); }
.js-motion .feature[data-rv].in .fi { scale: 1; }

/* CTA band confetti */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Account ---------- */
.auth { display: flex; align-items: center; position: relative; margin-left: auto; }
.site-head .auth + .head-cta { margin-left: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--seal-soft); color: var(--seal); padding: 0; cursor: pointer; overflow: hidden; display: grid; place-items: center; font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(31,42,68,.45); padding: 6px; min-width: 230px; }
.acct-menu .who { margin: 0; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-menu .who b { display: block; font-size: .92rem; }
.acct-menu .who span { display: block; font-size: .8rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 9px; border: 0; background: none; font: 500 .92rem var(--body); color: var(--ink); text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--paper); }
.signin-box { width: min(420px, 100%); padding: 32px 28px 26px; text-align: center; position: relative; }
.signin-box h2 { font-size: 1.6rem; margin: 0 0 8px; }
.signin-box p { color: var(--ink-soft); margin: 0 0 18px; }
.signin-box .x-btn { position: absolute; top: 14px; right: 14px; }
.signin-box .gbtn { display: flex; justify-content: center; min-height: 44px; margin-bottom: 14px; }
.signin-box .fine { font-size: .8rem; margin: 0; }
@media (max-width: 960px) { .auth { margin-left: auto; } .site-head .menu-btn { margin-left: 8px; } }

/* ---------- My invitations ---------- */
.mine-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.mine-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 6px; }
.mine-head p { margin: 0; color: var(--ink-soft); }
.mine-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.inv { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.inv .thumb { aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; position: relative; display: block; }
.inv .thumb .cv-btns, .inv .thumb .cv-line { display: none; }
.inv h2 { font-family: var(--body); font-weight: 700; font-size: 1.15rem; margin: 4px 0 2px; }
.inv .when { color: var(--ink-soft); font-size: .92rem; margin: 0 0 12px; }
.inv .stats-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; margin: 0 0 14px; }
.inv .stats-row b { font-weight: 700; }
.inv .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inv .actions .btn { display: inline-flex; align-items: center; }
.mine-empty { text-align: center; padding: 64px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: 18px; }
.mine-empty h2 { margin: 0 0 8px; }
.mine-empty p { color: var(--ink-soft); margin: 0 auto 20px; max-width: 46ch; }
.claim { margin-top: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.claim h2 { font-size: 1.2rem; font-family: var(--body); font-weight: 700; margin: 0 0 4px; }
.claim p { margin: 0 0 12px; color: var(--ink-soft); font-size: .92rem; }
.claim form { display: flex; gap: 8px; flex-wrap: wrap; }
.claim input { flex: 1 1 280px; min-width: 0; font: 400 .95rem var(--body); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 560px) { .inv { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; } }
