/* Choobe — site styles. Colours and type follow the app. */

@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/SchibstedGrotesk_400Regular.woff") format("woff"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/SchibstedGrotesk_600SemiBold.woff") format("woff"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/SchibstedGrotesk_700Bold.woff") format("woff"); }
@font-face { font-family: "Big Shoulders"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/BigShoulders_800ExtraBold.woff") format("woff"); }
@font-face { font-family: "Chivo Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ChivoMono_500Medium.woff") format("woff"); }

:root {
  --paper: #FBF8F4;
  --ink: #241F2F;
  --ink-2: #544C63;
  --ink-3: #6C6479;
  --rule: #E7E1DA;

  --midnight: #1A2130;
  --sky: #A9C4C9;
  --sun: #C4553D;
  --lavender: #DDD5EC;
  --gold: #E8C468;
  --amber: #E8B45C;

  --c-orange: #F97316;
  --c-pink: #EC4899;
  --c-purple: #8A63D2;
  --c-teal: #4FAAB0;
  --c-blue: #214E7A;

  --collection: linear-gradient(118deg, #F97316 0%, #EC4899 36%, #8A63D2 68%, #22D3EE 100%);
  --ocean: linear-gradient(170deg, #0A1A2E 0%, #123A58 36%, #1A5C72 70%, #2A8F8E 100%);

  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --mono: "Chivo Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1200px;
  --pad: 32px;
  --band: clamp(88px, 10vw, 144px);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, .skip:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: #E6DDF6; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; z-index: 20; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */

h1, h2 { font-family: var(--display); font-weight: 800; margin: 0; color: inherit; line-height: .92; letter-spacing: .004em; }
h1 { font-size: clamp(64px, 9.4vw, 136px); }
h2 { font-size: clamp(48px, 6.4vw, 92px); }
h3 { margin: 0; font-size: 20px; line-height: 1.25; }

.lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; max-width: 27em; }
.copy p { max-width: 29em; }
.copy p + p { margin-top: 1em; }
h1 + .lead, h2 + p { margin-top: 28px; }

/* ---------- Header ---------- */

.site-header { padding: 24px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; line-height: 0; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 8px; }
.nav a { text-decoration: none; font-size: 16px; font-weight: 600; color: var(--ink); padding: 8px 16px; border-radius: 999px; }
.nav a:hover { background: rgba(36, 31, 47, .08); }

body.home .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 6; }

/* ---------- Store buttons ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 176px; padding: 11px 28px 12px;
  border-radius: 999px; background: var(--ink); color: #fff;
  line-height: 1.15; cursor: default; user-select: none;
}
.store small { font-size: 13px; font-weight: 600; opacity: .72; }
.store span { font-size: 18px; font-weight: 700; margin-top: 2px; }
.store.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.on-dark .store { background: #fff; color: var(--ink); }
.on-dark .store.alt { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.fine { margin-top: 18px; font-size: 16px; }

/* ---------- Phone frame ---------- */

.phone {
  margin: 0; width: 100%; max-width: 330px; padding: 11px;
  background: #0d0e11; border-radius: 58px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 40px 70px -30px rgba(26, 33, 48, .55);
}
.phone img { width: 100%; height: auto; border-radius: 47px; }

/* ---------- Poster scenes (hero, closing) ---------- */

.scene { position: relative; background: var(--sky); color: var(--ink); overflow: hidden; }
.scene .skyline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(120px, 15vw, 220px); object-fit: cover; object-position: center bottom; z-index: 2; pointer-events: none; }
.scene .sun { position: absolute; border-radius: 50%; background: var(--sun); width: clamp(150px, 19vw, 260px); aspect-ratio: 1; z-index: 0; animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scene .sun { animation: none; } }

.hero { padding-top: 150px; }
.hero .wrap { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 40px; align-items: end; }
.hero-copy { align-self: center; padding-bottom: clamp(120px, 16vw, 240px); }
.hero-copy h1 { color: var(--ink); }
.hero .sun { right: 41%; bottom: clamp(70px, 9vw, 150px); }
.hero-visual { display: flex; justify-content: center; align-items: flex-start; height: clamp(520px, 52vw, 640px); overflow: hidden; }
.hero-visual .phone { max-width: 340px; flex: none; }

.closing { padding: var(--band) 0 clamp(190px, 22vw, 320px); }
.closing .wrap { position: relative; z-index: 3; }
.closing .sun { right: 12%; bottom: clamp(60px, 8vw, 130px); }
.closing h2 { max-width: 9em; }
.closing .contact { margin-top: 28px; font-size: 17px; }
.closing .contact a { font-weight: 700; text-underline-offset: 3px; }

/* ---------- Bands ---------- */

.band { padding: var(--band) 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
.split .phone, .split .card-art { justify-self: center; }

.log { background: var(--midnight); color: #fff; }
.log p { color: #CBD0DC; }
.log .card-art { width: min(100%, 400px); transform: rotate(-4deg); filter: drop-shadow(0 34px 40px rgba(0,0,0,.5)); }

.collect .copy { padding-bottom: 8px; }
.route { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
.route::before { content: ""; position: absolute; left: 13px; top: 24px; bottom: 24px; width: 6px; border-radius: 3px; background: linear-gradient(var(--c-orange), var(--c-pink), var(--c-purple), var(--c-teal)); }
.route li { position: relative; padding-left: 56px; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 60px); line-height: 1.08; }
.route li::before { content: ""; position: absolute; left: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--paper); border: 5px solid var(--ink); }

.everyday .head { max-width: 15em; }
.board { margin-top: 48px; background: var(--midnight); color: #fff; border-radius: 28px; padding: clamp(8px, 2vw, 20px) clamp(22px, 4vw, 48px); }
.board-row { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) auto; align-items: baseline; gap: 8px 32px; padding: 24px 0; border-top: 2px dashed rgba(255,255,255,.16); }
.board-row:first-child { border-top: 0; }
.board-row h3 { font-size: 22px; font-weight: 600; }
.board-row p { color: #C2C8D6; font-size: 17px; line-height: 1.5; }
.board-row b { font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--amber); white-space: nowrap; }

.atlas { background: var(--ocean); color: #fff; padding-bottom: 0; overflow: hidden; }
.atlas p { color: #CFE0E6; }
.atlas .split { align-items: end; }
.atlas .copy { align-self: center; padding-bottom: var(--band); }
.atlas .phone { margin-bottom: -120px; background: #06080c; }

.friends { background: var(--lavender); }
.friends p { color: #3B3350; }

.plus .head { max-width: 12em; }
.ticket { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); margin-top: 56px; max-width: 980px; filter: drop-shadow(0 24px 30px rgba(36, 31, 47, .14)); }
.ticket > div { padding: clamp(28px, 4vw, 48px); }
.ticket-free { background: #fff; border-radius: 28px 0 0 28px; }
.ticket-plus { position: relative; background: var(--collection); color: #fff; border-radius: 0 28px 28px 0; border-left: 3px dashed rgba(255,255,255,.7); }
.ticket-plus::before, .ticket-plus::after { content: ""; position: absolute; left: -17px; width: 31px; height: 31px; border-radius: 50%; background: var(--paper); }
.ticket-plus::before { top: -16px; } .ticket-plus::after { bottom: -16px; }
.ticket h3 { font-family: var(--display); font-weight: 800; font-size: clamp(52px, 6vw, 76px); line-height: .95; }
.ticket .sub { margin-top: 6px; font-weight: 600; font-size: 19px; }
.ticket-free .sub { color: var(--ink-2); }
.ticket ul { list-style: none; margin: 26px 0 0; padding: 0; }
.ticket li { padding: 10px 0 10px 28px; position: relative; font-size: 17px; line-height: 1.4; }
.ticket li::before { content: ""; position: absolute; left: 0; top: 18px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid currentColor; }
.ticket-free li { color: var(--ink-2); }
.price { margin-top: 18px; font-size: 20px; line-height: 1.35; }
.price strong { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: .01em; }
.plus .note { margin-top: 28px; color: var(--ink-3); font-size: 16px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--midnight); color: rgba(255,255,255,.72); padding: 44px 0 52px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { height: 22px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a { text-decoration: none; color: #fff; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.credits { flex-basis: 100%; margin-top: 8px; padding-top: 24px; border-top: 2px dashed rgba(255,255,255,.16); font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,.62); max-width: none; }
.credits a { color: inherit; text-underline-offset: 2px; }

/* ---------- Document pages (support, privacy, terms, attribution) ---------- */

.doc { padding: clamp(40px, 7vw, 88px) 0 112px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(60px, 9vw, 112px); margin-bottom: 18px; }
.doc .meta { color: var(--ink-3); font-size: 16px; }
.doc .route-rule { height: 7px; width: 100%; max-width: 280px; margin: 36px 0 52px; background: var(--collection); border-radius: 4px; }
.doc h2 { font-family: var(--font); font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; margin: 48px 0 14px; }
.doc p, .doc li { color: var(--ink-2); font-size: 17.5px; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 14px 0 0; }
.doc li + li { margin-top: 8px; }
.doc a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc strong { color: var(--ink); }

.mail-card { display: inline-flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 22px 30px; border-radius: 28px; background: #fff; border: 1px solid var(--rule); text-decoration: none; }
.mail-card small { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.mail-card span { font-size: clamp(22px, 3vw, 28px); font-weight: 700; color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .hero { padding-top: 120px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 48px; }
  .hero .sun { right: -40px; top: 110px; bottom: auto; }
  .hero-visual { height: 440px; }
  .hero-visual .phone { max-width: 290px; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 56px; }
  .split .phone, .split .card-art { justify-self: start; }
  .split.flip .phone { order: 2; }
  .phone { max-width: 290px; }
  .atlas .phone { margin-bottom: -90px; }
  .atlas .copy { padding-bottom: 0; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-free { border-radius: 28px 28px 0 0; }
  .ticket-plus { border-radius: 0 0 28px 28px; border-left: 0; border-top: 3px dashed rgba(255,255,255,.7); }
  .ticket-plus::before, .ticket-plus::after { top: -16px; bottom: auto; }
  .ticket-plus::before { left: -16px; } .ticket-plus::after { left: auto; right: -16px; }
  .board-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --pad: 20px; }
  body { font-size: 17px; }
  .nav a { padding: 8px 12px; }
  .nav .nav-hide { display: none; }
  .brand img { height: 28px; }
  .store { min-width: 0; flex: 1 1 150px; padding: 10px 22px 11px; }
  .hero-visual .phone { max-width: 262px; }
  .phone { max-width: 262px; }
  .log .card-art { width: min(76%, 290px); margin: 16px 0 0 14px; }
  .closing .sun { right: -30px; bottom: 28px; width: 130px; }
}

/* ---------- Invite pages (/g/, /f/) ---------- */

.invite-hero { padding: 132px 0 clamp(170px, 19vw, 250px); }
.invite-hero .wrap { position: relative; z-index: 3; }
.invite-hero .lead { max-width: 25em; }
.invite-hero .sun { right: 12%; top: 96px; }
.invite { padding: clamp(48px, 6vw, 72px) 0 112px; }
.invite .wrap > * { max-width: 34em; }
.code-intro { font-size: 19px; font-weight: 600; color: var(--ink); }
.code { margin-top: 2px; font-family: var(--display); font-weight: 800; font-size: clamp(64px, 11vw, 112px); line-height: 1; letter-spacing: .03em; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pill { display: inline-block; padding: 15px 30px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 700 17px var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.pill.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.pill[hidden] { display: none; }
.invite .note { margin-top: 28px; color: var(--ink-2); }
.invite .note strong { color: var(--ink); }

@media (max-width: 600px) {
  .invite-hero { padding-top: 112px; }
  .invite-hero .sun { right: -36px; top: 74px; width: 140px; }
  .actions .pill { flex: 1 1 100%; }
}
