/* Present — usepresent.app
   One stylesheet, no build step. Colours are the app's own (shared/…/ui/PresentTheme.kt). */

:root {
  --ink: #1f2a30;
  --ink-2: #3a474e;
  --quiet: #66706f;
  --faint: #8c9291;
  --paper: #faf5ec;
  --paper-2: #f3eadb;
  --card: #fffdf8;
  --line: #e7dccb;
  --blue: #647e91;
  --sky: #5f7589;
  --sky-2: #93a4b1;
  --accent: #d98959;
  --accent-ink: #b4643a;
  --sage: #a6b49c;
  --sand: #d5b899;
  --mist: #b1b9c7;

  --sans: "SF Pro Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, serif;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(31, 42, 48, .06), 0 1px 1px rgba(31, 42, 48, .04);
  --shadow: 0 1px 2px rgba(31, 42, 48, .05), 0 12px 32px -12px rgba(31, 42, 48, .18);
  --shadow-lg: 0 2px 6px rgba(31, 42, 48, .06), 0 40px 80px -24px rgba(31, 42, 48, .35);
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
em.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav .container { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px/1 var(--display); letter-spacing: -.01em; }
.logo img { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: #111a1f; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--faint); }

.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 16px; min-height: 56px; border-radius: 14px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.15; text-align: left; }
.store small { font-size: 11px; letter-spacing: .02em; opacity: .72; }
.store b { font: 600 17px/1.2 var(--display); letter-spacing: -.01em; }
.store[aria-disabled="true"] { cursor: default; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────── Hero ───────── */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 10%, color-mix(in srgb, var(--sky-2) 45%, transparent), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding-block: 72px 96px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.hero h1 { margin-top: 22px; font-size: clamp(44px, 6.4vw, 76px); line-height: 1.0; font-weight: 700; letter-spacing: -.035em; }
.hero h1 em.serif { font-size: 1.04em; letter-spacing: -.01em; color: var(--accent-ink); }
.hero .lede { margin: 24px 0 32px; max-width: 34ch; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-2); }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--quiet); }

.devices { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 560px; }
.phone {
  position: relative; width: 272px; aspect-ratio: 9 / 19.5; padding: 9px;
  border-radius: 46px; background: linear-gradient(145deg, #2c353b, #151b1f);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #3b454b;
}
.phone::after { content: ""; position: absolute; top: 19px; left: 50%; width: 76px; height: 22px; border-radius: 12px; background: #0d1215; transform: translateX(-50%); }
.phone img { width: 100%; height: 100%; border-radius: 37px; background: #55687b; }
.devices .phone.back { position: absolute; transform: translate(-46%, -34px) rotate(-6deg) scale(.9); opacity: .98; }
.devices .phone.front { transform: translate(24%, 0) rotate(3deg); }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; padding-block: 48px 64px; }
  .hero .copy { text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero .stores { justify-content: center; }
  .devices { min-height: 520px; }
}
@media (max-width: 520px) {
  .devices { min-height: 470px; }
  .phone { width: 228px; border-radius: 40px; }
  .phone img { border-radius: 32px; }
  .devices .phone.back { transform: translate(-24%, -24px) rotate(-6deg) scale(.86); }
  .devices .phone.front { transform: translate(14%, 0) rotate(3deg); }
}

/* ───────── Proof strip ───────── */
.strip { border-block: 1px solid var(--line); background: var(--card); }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin: 0; padding: 22px 0; list-style: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.strip li { display: inline-flex; align-items: center; gap: 10px; }
.strip svg { width: 18px; height: 18px; color: var(--blue); }

/* ───────── Sections ───────── */
.section { padding-block: clamp(72px, 10vw, 120px); }
.section.tight { padding-top: 0; }
.split.first { margin-top: clamp(72px, 10vw, 120px); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.section h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; font-weight: 700; letter-spacing: -.03em; }
.section-head p { margin-top: 18px; font-size: 19px; color: var(--ink-2); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

.feature { padding: 28px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.feature .icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 12px; background: var(--paper-2); color: var(--ink); }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 8px; font-size: 20px; font-weight: 650; letter-spacing: -.015em; }
.feature p { margin: 0; color: var(--quiet); font-size: 16px; }
.feature .said { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 999px; background: var(--paper); font: italic 15px/1.3 var(--serif); color: var(--ink-2); }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 96px); }
.split + .split { margin-top: clamp(72px, 10vw, 120px); }
.split.flip .media { order: -1; }
.split h3 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; margin-bottom: 18px; }
.split p { color: var(--ink-2); font-size: 18px; }
.split .media { display: flex; justify-content: center; }
.split .phone { width: 280px; }
.checks { margin: 24px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23b4643a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .media { order: 0; }
  .split .media { order: -1; }
}

/* Places table */
.places { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.place { padding: 22px 20px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.place b { display: block; font: 650 17px/1.25 var(--display); letter-spacing: -.01em; }
.place span { display: block; margin-top: 6px; font-size: 15px; color: var(--quiet); }
.place i { display: block; width: 28px; height: 4px; margin-bottom: 16px; border-radius: 2px; background: var(--accent); }
.place:nth-child(2) i { background: #f4c78f; }
.place:nth-child(3) i { background: var(--blue); }
.place:nth-child(4) i { background: var(--sage); }
.place:nth-child(5) i { background: var(--mist); }
@media (max-width: 960px) { .places { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .places { grid-template-columns: 1fr; } }

/* Dark band */
.band-dark { background: linear-gradient(180deg, #25323a, #1b252b); color: #e9e4da; }
.band-dark h2, .band-dark h3 { color: #fbf6ec; }
.band-dark .kicker { color: #f0a877; }
.band-dark .section-head p { color: #c3c7c4; }
.nots { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nots li { padding: 12px 20px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-size: 16px; color: #e9e4da; }
.nots li s { text-decoration-color: rgba(240, 168, 119, .8); text-decoration-thickness: 2px; }
.band-dark .closing { margin: 40px auto 0; max-width: 560px; text-align: center; font: italic clamp(22px, 2.6vw, 28px)/1.4 var(--serif); color: #fbf6ec; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin-inline: auto; }
.plan { display: flex; flex-direction: column; padding: 36px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.plan.pro { background: linear-gradient(160deg, #fffaf1, #f6e6d3); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent), var(--shadow); }
.plan h3 { font-size: 24px; letter-spacing: -.02em; }
.plan .price { margin: 12px 0 4px; font: 700 40px/1 var(--display); letter-spacing: -.03em; }
.plan .price small { font: 500 16px var(--sans); color: var(--quiet); letter-spacing: 0; }
.plan .sub { color: var(--quiet); font-size: 15px; }
.plan .checks { flex: 1; margin-block: 24px 28px; }
.badge { align-self: flex-start; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font: 600 18px/1.35 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M9 12l5 5 5-5' fill='none' stroke='%231f2a30' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin: -6px 0 22px; color: var(--ink-2); max-width: 64ch; }

/* CTA */
.cta { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 80px); border-radius: 36px; text-align: center; color: #fbf6ec; background: linear-gradient(170deg, var(--sky) 0%, #7d91a0 55%, #c9b8a6 100%); box-shadow: var(--shadow-lg); }
.cta h2 { color: #fffdf8; font-size: clamp(32px, 4.6vw, 52px); }
.cta p { margin: 16px auto 32px; max-width: 46ch; font-size: 19px; color: rgba(255, 253, 248, .88); }
.cta .stores { justify-content: center; }
.cta .store { background: #fffdf8; color: var(--ink); }

/* ───────── Footer ───────── */
.footer { margin-top: clamp(72px, 10vw, 120px); padding-block: 56px 40px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer p { color: var(--quiet); max-width: 32ch; margin-top: 14px; }
.footer h4 { margin: 4px 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ───────── Legal & support pages ───────── */
.page-head { padding-block: 64px 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.page-head h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.page-head p { margin: 16px 0 0; max-width: 60ch; font-size: 19px; color: var(--ink-2); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 14px; color: var(--quiet); }
.meta b { color: var(--ink-2); font-weight: 600; }

.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-block: 48px 0; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc h2 { margin-bottom: 12px; font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--quiet); }
.toc a::before { content: counter(toc) ". "; color: var(--faint); }
.toc a:hover { background: var(--paper-2); color: var(--ink); }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 32px; } .toc { position: static; padding: 18px 20px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); } }

.prose { max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { margin: 56px 0 14px; padding-top: 8px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }

.summary { margin-bottom: 48px; padding: 28px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.summary h2 { margin: 0 0 16px !important; padding: 0 !important; font-size: 18px !important; }
.summary ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.summary li { position: relative; margin: 0; padding-left: 30px; }
.summary li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--sage) 45%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.2 9.4l2.4 2.3 5-5' fill='none' stroke='%233d5236' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }

.table-wrap { overflow-x: auto; margin: 20px 0 24px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.prose table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--quiet); background: var(--paper-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--ink); font-weight: 600; }

.callout { margin: 20px 0; padding: 18px 20px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 9%, var(--card)); box-shadow: inset 3px 0 0 var(--accent); }
.callout p:last-child { margin: 0; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 24px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.contact-card b { display: block; color: var(--ink); font: 650 18px var(--display); }
.contact-card span { color: var(--quiet); font-size: 15px; }

/* Support */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -28px; position: relative; }
.help-card { display: block; padding: 24px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); text-decoration: none; }
.help-card:hover { box-shadow: inset 0 0 0 1px var(--faint), var(--shadow); }
.help-card .icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 10px; background: var(--paper-2); }
.help-card .icon svg { width: 20px; height: 20px; }
.help-card b { display: block; font: 650 18px/1.3 var(--display); letter-spacing: -.01em; }
.help-card span { display: block; margin-top: 4px; color: var(--quiet); font-size: 15px; }
@media (max-width: 760px) { .help-grid { grid-template-columns: 1fr; margin-top: 24px; } }
.steps { counter-reset: step; margin: 12px 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 12px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); font: 700 13px var(--sans); color: var(--ink); }

/* 404 */
.lost { display: grid; place-items: center; min-height: 60vh; text-align: center; padding-block: 80px; }
.lost h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -.035em; }
.lost p { margin: 14px 0 28px; color: var(--ink-2); font-size: 19px; }
