/* Elite Corner — studio site. Paper and ink, with each app bringing its own colour. */

@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-700.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F6F2EA;
  --paper-2: #EFE8DC;
  --card: #FFFDF8;
  --ink: #1D1A17;
  --ink-2: #4B453E;
  --muted: #7A7167;
  --line: #E3DACB;
  --dot: rgba(29, 26, 23, .13);
  --accent: #D6542A;
  --accent-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 10px 30px -12px rgba(40, 30, 20, .22);
  --shadow-lg: 0 2px 4px rgba(40, 30, 20, .06), 0 28px 60px -24px rgba(40, 30, 20, .38);
  --radius: 26px;
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131210;
    --paper-2: #1B1A17;
    --card: #1D1C19;
    --ink: #F3EEE6;
    --ink-2: #CFC8BD;
    --muted: #A1988C;
    --line: #2D2B27;
    --dot: rgba(243, 238, 230, .10);
    --accent: #FF835A;
    --accent-ink: #1D1A17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; margin: 0; }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-size: 22px; letter-spacing: -.015em; line-height: 1.15; font-weight: 700; }
p { margin: 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); }
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav a.cta { background: var(--ink); color: var(--paper); }
.site-nav a.cta:hover { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 640px) { .site-nav a:not(.cta) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  font: 600 14px/1 var(--body); background: var(--paper-2); color: var(--ink-2);
}
.pill .live { width: 8px; height: 8px; border-radius: 50%; background: #E2A33A; box-shadow: 0 0 0 4px color-mix(in srgb, #E2A33A 25%, transparent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 96px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.6px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7.2vw, 92px); margin: 22px 0 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-2); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
}

/* the icon shelf: one tile per app, plus a dashed "next" tile */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 470px; margin-left: auto; }
.mosaic .tile {
  position: relative; aspect-ratio: 1; border-radius: 24%; overflow: hidden; display: block;
  box-shadow: var(--shadow-lg); transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.mosaic .tile img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .tile:hover { transform: rotate(0deg) translateY(calc(var(--y, 0px) - 8px)) scale(1.04); }
.mosaic .tile.next {
  box-shadow: none; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted);
  text-decoration: none; text-align: center; font: 600 13px/1.25 var(--body); padding: 10px;
}
.mosaic .tile.next b { display: block; font: 800 34px/1 var(--display); color: var(--accent); margin-bottom: 4px; }
.mosaic .tile.next:hover { border-color: var(--accent); color: var(--ink); }
.mosaic .spacer { aspect-ratio: 1; }
@media (max-width: 900px) { .mosaic { margin: 0 auto; max-width: 420px; } }
@media (prefers-reduced-motion: no-preference) {
  .mosaic .tile:not(.next) { animation: bob 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
  @keyframes bob { 50% { translate: 0 -7px; } }
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--ink-2); font-size: 19px; }
@media (max-width: 600px) { section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* ---------- app cards ---------- */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .apps { grid-template-columns: 1fr; } }
.app-card {
  position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.app-card .art { aspect-ratio: 1024 / 500; overflow: hidden; background: var(--a-bg); }
.app-card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.app-card:hover .art img { transform: scale(1.03); }
.app-card .body { flex: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr auto; gap: 6px 16px; padding: 22px 24px 24px; align-items: center; }
.app-card .tagline { align-self: start; }
.app-card .foot { align-self: end; }
.app-card .icon { width: 60px; height: 60px; border-radius: 24%; box-shadow: var(--shadow); grid-row: span 2; }
.app-card h3 { font-size: 24px; }
.app-card .cat { font-size: 14px; font-weight: 600; color: var(--muted); }
.app-card .tagline { grid-column: 1 / -1; margin-top: 12px; color: var(--ink-2); }
.app-card .foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.app-card .more { font-weight: 700; color: var(--a-accent-on-card, var(--accent)); display: inline-flex; align-items: center; gap: 6px; }
.app-card .more svg { width: 16px; height: 16px; transition: transform .25s; }
.app-card:hover .more svg { transform: translateX(4px); }
.status { color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E2A33A; }
.status.live::before { background: #2FA36B; }

.next-card {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 32px; display: grid; align-content: center; gap: 12px;
  min-height: 260px; grid-column: 1 / -1;
}
.next-card h3 { font-size: 26px; }
.next-card p { color: var(--ink-2); max-width: 40em; }
.next-card .btn { justify-self: start; margin-top: 8px; }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.principle { padding: 28px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.principle .num { font: 800 15px/1 var(--display); color: var(--accent); letter-spacing: .02em; }
.principle h3 { margin: 40px 0 10px; }
.principle p { color: var(--ink-2); font-size: 16px; }

/* ---------- testers band ---------- */
.band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; padding: 64px;
  background: var(--ink); color: var(--paper);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--paper) 22%, transparent) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(110deg, transparent 45%, #000 100%); mask-image: linear-gradient(110deg, transparent 45%, #000 100%);
}
.band h2 { color: var(--paper); }
.band p { color: color-mix(in srgb, var(--paper) 78%, transparent); font-size: 19px; margin-top: 16px; }
.band .btn-primary { background: var(--accent); color: var(--accent-ink); }
.band .btn-primary:hover { background: var(--paper); color: var(--ink); }
.band .side { display: grid; gap: 14px; justify-items: start; }
.band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: color-mix(in srgb, var(--paper) 85%, transparent); }
.band li { display: flex; gap: 10px; align-items: baseline; }
.band li::before { content: "✓"; color: var(--accent); font-weight: 800; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; padding: 40px 24px; border-radius: 28px; } }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact .mail { display: inline-block; margin-top: 24px; font: 800 clamp(24px, 4.4vw, 48px)/1.1 var(--display); letter-spacing: -.02em; text-decoration: none; overflow-wrap: anywhere; border-bottom: 3px solid var(--accent); padding-bottom: 4px; }
.contact .mail:hover { color: var(--accent); }
.contact p { color: var(--ink-2); max-width: 36em; margin: 16px auto 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; font-size: 15px; }
.site-footer .grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 12px; font: 700 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }
.site-footer .about p { color: var(--muted); margin-top: 14px; max-width: 26em; }
.site-footer .legal { margin-top: 48px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 820px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }

/* ---------- app page ---------- */
.app-hero {
  --ink-h: var(--a-ink); position: relative; overflow: hidden; isolation: isolate;
  margin: 24px auto 0; border-radius: 36px; background: var(--a-bg); color: var(--a-ink);
  padding: 64px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a-ink) 8%, transparent);
}
.app-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--a-ink) 16%, transparent) 1.2px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 85% 50%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 90% at 85% 50%, #000 10%, transparent 70%);
}
.app-hero .icon { width: 96px; height: 96px; border-radius: 24%; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); }
.app-hero .cat { margin-top: 28px; font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--a-muted); }
.app-hero h1 { font-size: clamp(48px, 7vw, 84px); margin: 12px 0 8px; color: var(--a-ink); }
.app-hero .tag { font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--display); color: var(--a-accent); letter-spacing: -.015em; }
.app-hero .summary { margin-top: 20px; font-size: 19px; color: color-mix(in srgb, var(--a-ink) 82%, transparent); max-width: 32em; }
.app-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.app-hero .btn-primary { background: var(--a-ink); color: var(--a-bg); }
.app-hero .btn-primary:hover { background: var(--a-accent); color: var(--a-bg); }
.app-hero .btn-ghost { border-color: color-mix(in srgb, var(--a-ink) 30%, transparent); color: var(--a-ink); }
.app-hero .btn-ghost:hover { border-color: var(--a-ink); }
.app-hero .pill { background: color-mix(in srgb, var(--a-ink) 10%, transparent); color: var(--a-ink); }
.app-hero .phone { justify-self: center; width: min(320px, 100%); border-radius: 30px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); transform: rotate(3deg); }
@media (max-width: 900px) {
  .app-hero { grid-template-columns: 1fr; padding: 40px 24px 48px; border-radius: 28px; margin-top: 12px; }
  .app-hero .phone { width: min(280px, 80%); transform: none; }
}

.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 28px; margin: 0 -24px; scrollbar-width: thin; }
.shots img { flex: none; width: 250px; aspect-ratio: 1080 / 1920; border-radius: 22px; scroll-snap-align: start; box-shadow: var(--shadow); background: var(--paper-2); }
@media (max-width: 600px) { .shots { padding: 8px 16px 24px; margin: 0 -16px; } .shots img { width: 210px; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 26px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.feature .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--a-accent-on-card, var(--accent)); margin-bottom: 28px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 16px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--card); }
.facts div { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.facts dt { font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts dd a { color: var(--a-accent-on-card, var(--accent)); }
.facts dd ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

.crumbs { font-size: 15px; color: var(--muted); padding-top: 20px; }
.crumbs a { text-decoration: none; color: var(--ink-2); font-weight: 600; }
.crumbs a:hover { color: var(--accent); }

/* ---------- documents (policies, terms) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 0 40px; }
.doc h1 { font-size: clamp(36px, 5.4vw, 56px); margin: 12px 0 14px; }
.doc h2 { font-size: 24px; letter-spacing: -.015em; margin: 44px 0 10px; line-height: 1.2; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc strong { color: var(--ink); }
.doc .muted { color: var(--muted); font-size: 15px; }
.doc .card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin: 24px 0; color: var(--ink-2); }
.doc .table { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { color: var(--ink); font-weight: 700; background: var(--paper-2); }

/* ---------- reveal on scroll (only when JS runs) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
