/* Layout and components. Brand-free: every colour, font, radius and the logo come from the theme (assets/theme.css).
   Calm by rule: one accent, lots of room, one call to action per section, nothing that moves on its own. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font: var(--body-weight) 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 76px); }
h2 { font-size: clamp(32px, 4.2vw, 50px); }
h3 { font-size: 23px; line-height: 1.2; }
p { text-wrap: pretty; }
strong, b { font-weight: var(--strong-weight); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; }

.wrap { width: min(1140px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 48px); }
.section { padding: 112px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }
.center { text-align: center; margin-inline: auto; }

/* the logo is markup; the theme decides how it looks */
.logo { display: inline-flex; align-items: center; gap: 0.45em; font-size: calc(24px * var(--logo-scale, 1)); line-height: 1; color: var(--text); white-space: nowrap; }
.app-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--icon) center / cover no-repeat; flex: none; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 0 transparent; }
.dot.glow { box-shadow: 0 0 10px var(--online); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: var(--strong-weight); font-size: 16px;
  letter-spacing: 0.01em; white-space: nowrap; transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn.small { height: 42px; padding: 0 20px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); filter: none; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* site header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent);
             backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.head-actions { display: flex; align-items: center; gap: 20px; font-size: 15px; }

/* hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; font-size: 14px; color: var(--faint); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }

/* a phone-sized chat card, used in the hero */
.chat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: var(--shadow);
             max-width: 420px; margin-left: auto; width: 100%; }
.chat-card .thread { padding: 18px 0 4px; }

/* chat bits shared by the hero card and the app */
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who .name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 21px; line-height: 1.1; }
.who .status { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
          background: var(--portrait); color: var(--portrait-ink); font-family: var(--font-display); font-size: 19px; }
.avatar.online::after { content: ""; position: absolute; right: -1px; bottom: 0; width: 12px; height: 12px; border-radius: 50%;
                        background: var(--online); box-shadow: 0 0 0 3px var(--surface); }
.thread { display: flex; flex-direction: column; gap: 9px; }
.msg { max-width: 82%; padding: 11px 16px; border-radius: 20px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.msg.them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.msg.you { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg.note { align-self: center; background: none; color: var(--faint); font-size: 13px; padding: 4px 0; letter-spacing: 0.04em; text-align: center; }
.msg.memory { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft);
              color: var(--muted); font-size: 13px; }
.msg.memory::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.msg.scene { align-self: center; max-width: 30em; padding: 6px 12px 20px; background: none; text-align: center; color: var(--muted); font-size: 15px; }
.msg.scene span { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.msg.photo { padding: 6px; }
.msg.photo .ph { width: min(220px, 60vw); aspect-ratio: 4 / 5; border-radius: 15px; background: var(--portrait); display: grid; place-items: end start;
                 padding: 12px 14px; color: var(--portrait-ink); font-size: 12px; letter-spacing: 0.04em; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 15px 18px; border-radius: 20px; border-bottom-left-radius: 6px; background: var(--surface-2); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: 0.4; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 50% { opacity: 1; } }
.composer { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 7px 0 20px; border-radius: 999px; background: var(--surface-2); }
.composer .icon-btn { margin-left: -12px; }
.composer input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 16px; }
.composer input::placeholder { color: var(--faint); }
.send { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.send svg { width: 18px; height: 18px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 36px 32px 38px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.step .num { font-family: var(--font-display); font-size: 15px; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { margin: 22px 0 12px; }
.step p { color: var(--muted); font-size: 16px; }

/* segmented switch: Girlfriend / Boyfriend */
.switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.switch button { height: 40px; padding: 0 20px; border-radius: 999px; font-size: 15px; color: var(--muted); }
.switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.switch a { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; font-size: 15px; color: var(--muted); }
.switch a:hover { color: var(--text); }
.switch a[aria-current="page"] { background: var(--surface-2); color: var(--text); }

/* companions */
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.gallery-head .section-head { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.portrait { position: relative; aspect-ratio: 4 / 4.4; background: var(--portrait); display: grid; place-items: center; }
.portrait .initial { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 96px; line-height: 1; color: var(--portrait-ink); opacity: 0.9; }
.portrait .status { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
                    background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(8px); font-size: 13px; color: var(--text); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 26px; flex: 1; }
.card-body .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-body h3 { font-size: 26px; }
.card-body .age { color: var(--faint); font-size: 15px; }
.card-body .job { color: var(--muted); font-size: 15px; margin-top: -4px; }
.card-body .tagline { color: var(--text); font-size: 16px; }
.card-body .meet { color: var(--muted); font-size: 15px; margin-top: 6px; }
.card-body .meet span, .profile .meet span { display: block; margin-bottom: 3px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags span { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--muted); }
.card-body .btn { margin-top: auto; }
.card-body .spacer { flex: 1; min-height: 12px; }
.app-body .cards .portrait { aspect-ratio: 4 / 3.4; }
.card.build { border-style: dashed; background: transparent; justify-content: center; padding: 36px 32px; gap: 14px; }
.card.build h3 { font-size: 28px; }
.card.build p { color: var(--muted); font-size: 16px; }
.card.build .btn { align-self: flex-start; margin-top: 8px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 920px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; padding: 40px 36px 36px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.plan.featured { box-shadow: inset 0 0 0 1.5px var(--accent); }
.plan .badge { align-self: flex-start; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.plan h3 { font-size: 30px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 6px; }
.plan .price b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 54px; line-height: 1; }
.plan .price span { color: var(--muted); }
.plan .for { color: var(--muted); font-size: 16px; }
.plan ul { list-style: none; display: grid; gap: 12px; margin: 28px 0 34px; font-size: 16px; }
.plan li { display: flex; gap: 12px; }
.plan li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.68em; border-radius: 50%; background: var(--accent); }
.plan .btn { margin-top: auto; }
.addon { max-width: 920px; margin: 24px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
         padding: 22px 28px; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--muted); font-size: 16px; }
.fineprint { margin-top: 28px; text-align: center; color: var(--faint); font-size: 14px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0;
               font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 26px; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--muted); max-width: 40em; }

/* closing call to action */
.cta { text-align: center; padding: 110px 0 120px; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: var(--glow); transform: scaleX(-1); pointer-events: none; }
.cta .wrap { position: relative; }
.cta p { margin: 20px auto 36px; max-width: 32em; color: var(--muted); font-size: 18px; }
.inline-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.inline-form input { flex: 1; min-width: 0; border-radius: 999px; padding: 0 22px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 64px; font-size: 14px; color: var(--faint); }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--muted); }
.site-foot nav a:hover { color: var(--text); }
.site-foot .small { grid-column: 1 / -1; max-width: 60em; line-height: 1.7; }

/* forms */
.field { display: grid; gap: 8px; }
.field label, .label { font-size: 14px; color: var(--muted); }
.input, .inline-form input, select.input {
  height: 52px; padding: 0 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); outline: 0; font-size: 16px; width: 100%;
}
.input:focus, .inline-form input:focus { border-color: var(--accent); }
.input::placeholder, .inline-form input::placeholder { color: var(--faint); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.form { display: grid; gap: 18px; }
.form .err { color: var(--danger); font-size: 14px; min-height: 1em; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: var(--radius-sm); border: 1px solid var(--line);
                background: var(--surface); color: var(--muted); cursor: pointer; font-size: 15px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice input:checked + label { border-color: var(--accent); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }

/* sign-up and log-in pages */
.auth { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.auth-head { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.auth-main { display: grid; place-items: center; padding: 24px 0 72px; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: clamp(36px, 5vw, 46px); margin-bottom: 12px; }
.auth-card .sub { color: var(--muted); margin-bottom: 34px; }
.auth-card .alt { margin-top: 26px; text-align: center; color: var(--muted); font-size: 15px; }

/* the app */
.app-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.app-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.app-head .logo { font-size: calc(21px * var(--logo-scale, 1)); }
.app-nav { display: flex; gap: 6px; font-size: 15px; }
.app-nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); }
.app-nav a:hover { color: var(--text); }
.app-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.page { padding: 56px 0 96px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 48px); }
.page-head p { color: var(--muted); margin-top: 10px; }

.recent { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 52px; scrollbar-width: none; }
.recent a { display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border-radius: 999px; background: var(--surface);
            border: 1px solid var(--line); flex: none; }
.recent a:hover { border-color: var(--muted); }
.recent .last { font-size: 13px; color: var(--muted); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent .nm { font-size: 15px; }
.recent .nm, .recent .last { display: block; }

/* chat screen */
.chat-app { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.chat-layout { display: grid; grid-template-columns: 300px 1fr 330px; min-height: 0; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; padding: 18px 12px; }
.chat-list h2 { font-size: 14px; font-family: var(--font-body); font-weight: var(--body-weight); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); padding: 6px 12px 14px; }
.chat-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); }
.chat-list a:hover { background: var(--surface); }
.chat-list a[aria-current="true"] { background: var(--surface-2); }
.chat-list .meta { min-width: 0; }
.chat-list .nm { font-size: 16px; }
.chat-list .last { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.chat-scroll { overflow-y: auto; padding: 28px 24px 16px; }
.chat-scroll .thread { max-width: 720px; margin: 0 auto; }
.chat-foot { padding: 12px 24px 22px; }
.chat-foot .composer { max-width: 720px; margin: 0 auto; }
.chat-foot .hint { max-width: 720px; margin: 10px auto 0; text-align: center; font-size: 12px; color: var(--faint); }
.profile { position: relative; border-left: 1px solid var(--line); overflow-y: auto; padding: 28px 26px 40px; }
.profile .portrait { border-radius: var(--radius-lg); aspect-ratio: 4 / 3.6; }
.profile .portrait .initial { font-size: 72px; }
.profile h2 { font-size: 30px; margin-top: 22px; }
.profile .tagline { color: var(--muted); margin-top: 6px; font-size: 16px; }
.profile h3 { font-family: var(--font-body); font-weight: var(--body-weight); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 30px 0 10px; }
.profile p { font-size: 15px; color: var(--muted); }
.memories { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.memories li { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.memories li.new { border-color: var(--accent); color: var(--text); }
.back { display: none; }

/* account and billing */
.panels { display: grid; gap: 24px; max-width: 760px; }
.panel { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.panel h2 { font-size: 26px; margin-bottom: 6px; }
.panel > p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.panel .form { max-width: 460px; }
.rows { display: grid; }
.rows > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 16px; }
.rows > div:first-child { border-top: 0; padding-top: 4px; }
.rows .k { color: var(--muted); }
.plan-now { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.plan-now .nm { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 34px; line-height: 1.1; }
.plan-now .muted { font-size: 15px; margin-top: 4px; }
.meter { margin-top: 28px; }
.meter .bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.meter .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.meter .row { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pack { display: flex; flex-direction: column; align-items: flex-start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); text-align: left; transition: border-color 0.15s ease; }
.pack:hover { border-color: var(--accent); }
.pack b { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; }
.pack span { color: var(--muted); font-size: 14px; }
.packs.two { grid-template-columns: repeat(2, 1fr); }
.pack[aria-current="true"] { border-color: var(--accent); }
.pack em { display: block; margin-top: 10px; font-style: normal; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
table.invoices { width: 100%; border-collapse: collapse; font-size: 15px; }
.invoices td { padding: 14px 0; border-top: 1px solid var(--line); }
.invoices td:last-child { text-align: right; }
.invoices tr:first-child td { border-top: 0; }
.danger-link { color: var(--danger); font-size: 15px; }
.stub-note { font-size: 13px; color: var(--faint); margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 999px;
         background: var(--text); color: var(--bg); font-size: 15px; transition: 0.25s ease; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* page bits */
body.auth-body { background-image: var(--glow); background-repeat: no-repeat; background-attachment: fixed; }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding: 20px 0 32px; font-size: 13px; color: var(--faint); }
.auth-foot a:hover { color: var(--muted); }
.label-head { display: block; font-family: var(--font-body); font-weight: var(--body-weight); font-size: 13px; line-height: 1.4; letter-spacing: 0.12em;
              text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
#chat-who { flex: 1; min-width: 0; }
.chat-body .app-head .wrap { width: auto; padding: 0 24px; }
.profile .close { display: none; position: absolute; top: 14px; right: 14px; }
.prose { max-width: 720px; }
.prose h1 { margin: 14px 0 18px; font-size: clamp(36px, 5vw, 52px); }
.prose h2 { font-size: 28px; margin: 56px 0 16px; scroll-margin-top: 96px; }
.prose ul { display: grid; gap: 10px; padding-left: 1.1em; color: var(--muted); }
.prose li::marker { color: var(--accent); }

/* responsive */
@media (min-width: 1101px) { .chat-top .info { display: none; } }
@media (max-width: 1100px) {
  .chat-layout { grid-template-columns: 280px 1fr; }
  .profile { display: none; position: fixed; inset: 68px 0 0 auto; width: min(380px, 100%); background: var(--bg); z-index: 30; box-shadow: var(--shadow); }
  .profile.open { display: block; }
  .profile .close { display: grid; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .chat-card { margin: 0 auto; }
  .steps, .cards { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .addon { max-width: 520px; }
}
@media (max-width: 760px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-list { display: none; }
  .back { display: grid; }
  body.in-chat .app-head { display: none; }
  .profile { inset: 0; width: 100%; }
  body.list-mode .chat-list { display: block; border-right: 0; padding: 18px 8px 96px; }
  body.list-mode .chat-main { display: none; }
  .chat-top { padding: 10px 14px; }
  .chat-scroll { padding: 20px 14px 12px; }
  .chat-foot { padding: 10px 12px 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .section { padding: 84px 0; }
  .hero { padding: 40px 0 88px; }
  .head-actions .login { display: none; }
  .logo, .app-head .logo { font-size: calc(21px * var(--logo-scale, 1)); }
  .app-head { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .app-head .wrap { justify-content: center; height: 60px; }
  .app-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; justify-content: space-around; gap: 0;
             padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
  .app-nav a { flex: 1; text-align: center; }
  .app-body .page { padding-bottom: 120px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .cards .portrait { aspect-ratio: 5 / 4; }
  /* on a phone the site's gallery is a swipeable row with the next card peeking in */
  #gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 0 20px 6px;
             scroll-padding: 0 20px; scrollbar-width: none; }
  #gallery .card { flex: 0 0 84%; scroll-snap-align: start; }
  .gallery-head { align-items: start; }
  .plan { padding: 32px 26px 28px; }
  .inline-form { flex-direction: column; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .packs, .packs.two { grid-template-columns: 1fr; }
  .panel { padding: 26px 22px; }
}
