/* Surl — the website. Colours come from the app: three pink screens on dark navy. */

:root {
  --navy: #181824;
  --panel: #20202f;
  --raised: #2a2a3d;
  --line: #363650;
  --rose: #d03a7a;
  --pink: #f483b0;
  --blush: #ffd0e2;

  --ink: #f6f1f6;
  --ink-soft: #b4b3cb;

  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --plain: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

  --wrap: 1140px;
  --gap: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--ink); font: 17px/1.6 var(--plain); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--round); line-height: 1.08; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7.4vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
.nowrap { white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gap)); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2 * var(--gap)); }

.skip { position: absolute; left: 12px; top: -60px; background: var(--pink); color: var(--navy); padding: 10px 14px; border-radius: 10px; z-index: 50; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blush); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font: 700 0.8rem/1 var(--round); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); margin-bottom: 16px; }

/* ---- buttons ---- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 14px; border: 0;
  background: var(--pink); color: #2a0b19;
  font: 700 1.05rem/1 var(--round); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 10px 30px -10px rgba(244, 131, 176, 0.75);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { background: var(--blush); transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button.small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; border-radius: 11px; }
.button.block { display: flex; width: 100%; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.ghost:hover { background: var(--raised); box-shadow: inset 0 0 0 1.5px var(--pink); }

/* ---- the bar at the top ---- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(24, 24, 36, 0.84);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(54, 54, 80, 0.7);
}
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.25rem/1 var(--round); letter-spacing: -0.01em; }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.96rem; padding: 8px 12px; border-radius: 9px; }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--ink); background: var(--raised); }

/* ---- hero ---- */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(208, 58, 122, 0.32), transparent 70%),
    radial-gradient(50% 40% at 50% 78%, rgba(244, 131, 176, 0.14), transparent 70%);
}
.hero-text { position: relative; }
.hero .lede { font-size: clamp(1.1rem, 2.1vw, 1.35rem); color: var(--ink-soft); max-width: 46ch; margin: 22px auto 0; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.fine { margin-top: 18px; color: var(--ink-soft); font-size: 0.95rem; }

/* The three screens, laid out like the app's icon, each scrolling its real full-length page. */
.trio {
  position: relative; margin: clamp(48px, 7vw, 80px) auto 0;
  width: min(1060px, 100% - 2 * var(--gap));
}
.stage { position: relative; aspect-ratio: 1060 / 700; }
.screen { position: absolute; border-radius: clamp(10px, 1.6vw, 22px); padding: clamp(5px, 0.9vw, 12px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.screen .scroller { width: 100%; height: 100%; overflow: hidden; border-radius: clamp(5px, 0.8vw, 12px); background: var(--panel); container-type: size; }
.screen img { width: 100%; animation: read 34s ease-in-out infinite alternate; }
.screen.desktop { left: 0; top: 0; width: 74%; height: 70%; background: var(--rose); }
.screen.tablet { left: 52%; top: 26%; width: 30%; height: 66%; background: var(--pink); }
.screen.tablet img { animation-delay: -6s; }
.screen.phone { left: 80%; top: 50%; width: 17%; height: 50%; background: var(--blush); }
.screen.phone img { animation-delay: -12s; }
.tag {
  position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 0;
  font: 700 0.78rem/1 var(--round); letter-spacing: 0.04em; white-space: nowrap;
  background: var(--navy); color: var(--ink-soft); padding: 7px 10px; border-radius: 99px; border: 1px solid var(--line);
}
.screen.desktop .tag { left: 14%; }
.screen.phone .tag, .screen.tablet .tag { bottom: auto; top: calc(100% + 8px); }
@keyframes read {
  0%, 8% { transform: translateY(0); }
  92%, 100% { transform: translateY(calc(-100% + 100cqh)); }
}
.trio figcaption { margin-top: 26px; color: var(--ink-soft); font-size: 0.92rem; }

/* ---- steps ---- */
.steps { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); }
.step-list li { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; }
.step-list p { color: var(--ink-soft); margin-top: 8px; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 14px; background: var(--raised); color: var(--pink); font: 800 1rem/1 var(--round); }

/* ---- feature bands ---- */
.band { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--panel); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 + p, .split p + p { margin-top: 18px; }
.split p { color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; color: var(--ink-soft); }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 16px; height: 16px; border-radius: 5px; background: var(--rose); box-shadow: 6px 6px 0 -2px var(--blush); }
.ticks strong { color: var(--ink); }
.note { margin-top: 20px !important; font-size: 0.93rem; border-left: 3px solid var(--pink); padding-left: 12px; }

.window { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85); }
.pair { position: relative; padding-bottom: 18%; }
.pair .window.small { position: absolute; right: -4%; bottom: 0; width: 56%; }

/* ---- tour ---- */
.tour { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); position: relative; }
.tour::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 40% at 50% 60%, rgba(208, 58, 122, 0.16), transparent 70%); }
.section-head { text-align: center; margin-bottom: clamp(28px, 4vw, 40px); position: relative; }
.tabs { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 26px; padding: 6px; width: fit-content; max-width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.tabs button { font: 600 0.96rem/1 var(--plain); color: var(--ink-soft); background: transparent; border: 0; padding: 11px 16px; border-radius: 10px; cursor: pointer; }
.tabs button:hover { color: var(--ink); background: var(--raised); }
.tabs button[aria-selected="true"] { background: var(--pink); color: #2a0b19; }
.window.big { position: relative; }
.window.big img { transition: opacity 0.2s ease; }
.window.big img.fading { opacity: 0; }
.tour-says { position: relative; text-align: center; color: var(--ink-soft); max-width: 60ch; margin: 22px auto 0; min-height: 3.2em; }

/* ---- iPhone and iPad ---- */
.pocket { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); background: var(--panel); }
.sub { color: var(--ink-soft); max-width: 56ch; margin: 18px auto 0; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 0.46fr)) minmax(0, 1fr); gap: clamp(12px, 2vw, 22px); align-items: start; }
.phones img { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }

/* ---- cards ---- */
.grid-section { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.card svg { width: 30px; height: 30px; fill: none; stroke: var(--pink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.card p { color: var(--ink-soft); margin-top: 8px; font-size: 0.97rem; }

/* ---- price ---- */
.price { padding: clamp(56px, 8vw, 110px) 0; position: relative; border-top: 1px solid var(--line); }
.price::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 60% at 74% 50%, rgba(208, 58, 122, 0.24), transparent 72%); }
.price-row { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.price-text p { margin-top: 18px; color: var(--ink-soft); max-width: 48ch; }
.ticket { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 32px; text-align: center; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8); }
.ticket img { margin: 0 auto 14px; border-radius: 22px; }
.ticket-name { font: 800 1.4rem/1 var(--round); }
.amount { margin-top: 10px !important; color: var(--ink-soft); }
.amount span { font: 800 2.6rem/1 var(--round); color: var(--ink); }
.ticket ul { list-style: none; padding: 0; margin: 22px 0 24px; text-align: left; display: grid; gap: 8px; color: var(--ink-soft); }
.ticket li { padding-left: 26px; position: relative; }
.ticket li::before { content: "✓"; position: absolute; left: 0; color: var(--pink); font-weight: 800; }
.soon { margin-top: 14px; color: var(--blush); font-size: 0.95rem; }

/* ---- questions ---- */
.questions { padding: clamp(56px, 8vw, 100px) 0; border-top: 1px solid var(--line); }
.questions h2 { margin-bottom: 26px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; position: relative; padding: 20px 44px 20px 0; font: 700 1.1rem/1.35 var(--round); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border: solid var(--pink); border-width: 0 2.5px 2.5px 0; transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details p { color: var(--ink-soft); padding: 0 44px 22px 0; }
details p + p { margin-top: -8px; }

/* ---- support and privacy pages ---- */
.page { padding: clamp(48px, 7vw, 90px) 0 clamp(64px, 9vw, 110px); }
.page h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.page .lede { color: var(--ink-soft); font-size: 1.15rem; margin-top: 18px; }
.page h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 44px 0 14px; }
.page > .wrap > p:not(.eyebrow):not(.lede), .page li { color: var(--ink-soft); }
.page > .wrap > p + p { margin-top: 14px; }
.page ul { padding-left: 1.2em; display: grid; gap: 8px; }
.page a { color: var(--pink); }
.page details:has(+ h2) { border-bottom: 1px solid var(--line); }
.mail-card { margin-top: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.mail-card > p:first-child { font: 700 0.8rem/1 var(--round); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.mail-card a { display: inline-block; margin-top: 10px; font: 800 1.4rem/1.2 var(--round); color: var(--pink); text-decoration: none; word-break: break-all; }
.mail-card .fine { margin-top: 12px; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-row > p { margin-left: auto; color: var(--ink-soft); font-size: 0.92rem; }

/* ---- smaller screens ---- */
@media (max-width: 960px) {
  .top-nav:not(.pages) { display: none; }
  .top-row .button { margin-left: auto; }
  .split, .price-row { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .step-list, .cards { grid-template-columns: minmax(0, 1fr); }
  .stage { aspect-ratio: 1060 / 900; }
  .screen.desktop { width: 86%; height: 52%; }
  .screen.tablet { left: 40%; top: 30%; width: 38%; height: 58%; }
  .screen.phone { left: 74%; top: 52%; width: 24%; height: 48%; }
  .screen .tag { display: none; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .tabs button { flex: none; }
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gap)); padding: 0 var(--gap) 12px; scrollbar-width: none; }
  .phones img { flex: none; width: 66%; scroll-snap-align: center; }
  .phones img.ipad { width: 88%; }
  .foot-row > p { margin-left: 0; width: 100%; }
}
@media (max-width: 960px) and (min-width: 721px) {
  .pair .window.small { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen img { animation: none; }
}
