/* Frintl landing. Quiet monochrome page; the product does the talking. One accent (signal orange) for
   what needs you: the playbook switch and the hover on links. */
:root {
  --ground: #f6f6f3;
  --ink: #111312;
  --muted: #43474b;
  --accent: #ee5a1c;
  --dark: #111312;
  --dark-ink: #f1f1ee;
  --t-sage: #dde5df;
  --t-slate: #dde2e8;
  --t-blush: #e7e3e0;
  --t-sand: #e3e4e0;

  --font: 'Geist', system-ui, sans-serif;
  --m: clamp(16px, 3vw, 48px);
  --sec: clamp(96px, 12vw, 192px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.125rem/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.045em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 1rem + 6.4vw, 6.25rem); line-height: 0.98; }
h2 { font-size: clamp(2.25rem, 1rem + 3.6vw, 4.25rem); line-height: 1; }
p { margin: 0; }
.sub { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.4; color: var(--muted); max-width: 34ch; }
.soft { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.security :focus-visible { outline-color: var(--dark-ink); }
::selection { background: var(--accent); color: #fff; }

/* buttons: flat, fully round, one fill */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--ground); font: 500 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease; }
.btn:hover { transform: translateY(-2px); background: #2a2d2b; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }

/* nav: a plain bar */
.nav { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--m); }
.mark { font: 600 1.625rem/1 var(--font); letter-spacing: -0.06em; text-decoration: none; }
.nav nav { display: flex; gap: 32px; font-size: 0.9375rem; }
.nav nav a { text-decoration: none; padding: 8px 0; }
.nav nav a:hover, .foot nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* HERO: the one centred moment */
.hero { padding: 168px var(--m) 0; display: grid; justify-items: center; text-align: center; }
.hero .sub { margin-top: 28px; max-width: 40ch; }
.join { display: flex; gap: 8px; margin-top: 36px; width: min(460px, 100%); }
.join input { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: #e9e9e5; color: var(--ink); font: 400 1rem/1 var(--font); }
.join input::placeholder { color: #6b7074; }
.join input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.join-done { margin-top: 36px; font-weight: 500; }

.stage { position: relative; width: 100%; margin-top: 72px; height: clamp(380px, 34vw, 520px); overflow: hidden; display: grid; justify-items: center; }
.stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.9) brightness(1.05); opacity: .55; }
.stage .atropos { position: relative; width: min(1120px, 92%); margin-top: clamp(40px, 6vw, 88px); }
.stage .atropos-inner { overflow: visible; }

/* the app fragments (data-ui keep their own conventions) */
.ui, .app, .float { font-size: 14px; line-height: 1.4; background: #fff; color: var(--ink); text-align: left; border-radius: 10px; }
.ui { padding: 18px; }
.chip { display: inline-block; font-size: 12px; font-weight: 500; font-style: normal; padding: 2px 9px; border-radius: 99px; background: #eceeec; color: var(--ink); white-space: nowrap; }
.chip.ok { background: #d9ecdf; color: #14432a; }
.chip.warn { background: #fbe0d2; color: #7a2905; }
.ui-btn { font: 500 13px/1 var(--font); min-height: 34px; padding: 0 14px; background: #fff; color: var(--ink); border: 1px solid #c9ccc9; border-radius: 99px; cursor: pointer; transition: background-color .15s; } /* taste-skill-ignore: data-ui */
.ui-btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.ui-btn:hover { background: #f0f1ef; } .ui-btn.primary:hover { background: #2a2d2b; }
.ui-row { display: flex; gap: 6px; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.app-top strong { font-weight: 600; }

.app { display: grid; grid-template-columns: 184px 1fr; overflow: hidden; }
.app-side { display: grid; align-content: start; gap: 2px; padding: 16px 12px; background: #f7f7f5; }
.app-brand { font-size: 18px; letter-spacing: -0.05em; padding: 4px 10px 14px; }
.app-side span { padding: 7px 10px; border-radius: 6px; color: var(--muted); }
.app-side span.on { background: #e9e9e5; color: var(--ink); font-weight: 500; }
.app-main { padding: 18px 20px; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.col { display: grid; align-content: start; gap: 8px; }
.col-h { font-weight: 500; display: flex; gap: 8px; padding-bottom: 4px; }
.col-h span { color: var(--muted); }
.card { display: grid; gap: 4px; justify-items: start; padding: 12px; border-radius: 8px; background: #f7f7f5; }
.card.hot { background: #fdf0e8; }
.card span { color: var(--muted); font-size: 13px; }

/* CHAPTERS */
.chapter { padding: var(--sec) var(--m) 0; display: grid; gap: 48px; }
.ch-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.ch-head h2 { grid-column: 1 / 7; }
.ch-head p { grid-column: 8 / 13; color: var(--muted); font-size: 1.25rem; line-height: 1.4; }
.ch-stage { position: relative; min-height: clamp(420px, 40vw, 600px); display: grid; align-items: center; padding: clamp(24px, 5vw, 80px); }
.t-sage { background: var(--t-sage); } .t-slate { background: var(--t-slate); } .t-blush { background: var(--t-blush); } .t-sand { background: var(--t-sand); }
.w-wide { width: min(780px, 100%); } .w-mid { width: min(560px, 100%); }
.ch-stage .ui { font-size: 15px; }
.float { position: absolute; right: clamp(24px, 6vw, 96px); top: clamp(24px, 4vw, 64px); padding: 14px 16px; display: flex; gap: 10px; align-items: center; max-width: 340px;
  box-shadow: 0 16px 40px rgba(17,19,18,.16); } /* taste-skill-ignore: a floating notice, it floats */
.float-wide { display: grid; gap: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mail { display: grid; gap: 8px; align-content: start; padding-right: 8px; }
.mail-s { font-weight: 600; }
.fields { display: grid; gap: 2px; align-content: start; background: #f7f7f5; border-radius: 8px; padding: 12px 14px; }
.fields .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.fields .ui-btn { margin-top: 10px; justify-self: start; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.timeline li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 34px; position: relative; border-radius: 6px; }
.timeline li::before { content: ''; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #c9ccc9; }
.timeline li.done::before { background: #2e8b57; }
.timeline li:not(.done) { background: #fdf0e8; }
.timeline span { color: var(--muted); }

.ui-table { width: 100%; border-collapse: collapse; }
.ui-table td { padding: 9px 0; border-top: 1px solid #eceeec; }
.ui-table tr:first-child td { border-top: 0; }
.ui-table td.n { text-align: right; font-variant-numeric: tabular-nums; }
.ui-table tr.sum td { font-weight: 600; border-top: 1px solid var(--ink); }

.approve { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #eceeec; } /* taste-skill-ignore: data-ui */
.approve:first-of-type { border-top: 0; }
.approve div:first-child { display: grid; gap: 2px; }

.pb { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 0; border-top: 1px solid #eceeec; } /* taste-skill-ignore: data-ui */
.pb:nth-of-type(2) { border-top: 0; }
.pb > div:first-child { display: grid; gap: 2px; }
.pb .seg-mini { flex: 0 0 280px; }
.seg-mini { display: flex; background: #eceeec; border-radius: 99px; padding: 3px; }
.seg-mini button { flex: 1; font: 500 13px/1 var(--font); min-height: 32px; border: 0; border-radius: 99px; background: transparent; color: var(--ink); cursor: pointer; }
.seg-mini button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }

/* SECURITY */
.security { margin-top: var(--sec); padding: var(--sec) var(--m); background: var(--dark); color: var(--dark-ink); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.sec-copy { grid-column: 1 / 7; display: grid; gap: 24px; }
.security .sub { color: #b9bdb9; }
.points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.points li { color: #b9bdb9; font-size: 1rem; }
.points b { display: block; color: var(--dark-ink); font-weight: 500; font-size: 1.125rem; margin-bottom: 4px; }
.sec-ui { grid-column: 8 / 13; }
.mask { display: inline-block; min-width: 9em; padding: 1px 10px; background: var(--ink); color: #8d938f; border-radius: 4px; font-size: 12px; }

/* ALPHA */
.alpha { padding: var(--sec) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.alpha-copy { grid-column: 1 / 7; display: grid; gap: 24px; justify-items: start; }
.alpha .sub { max-width: 40ch; }
.alpha .join { margin-top: 8px; }
.alpha-photo { grid-column: 8 / 13; margin: 0; overflow: hidden; }
.alpha-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* FOOTER: the name returns at full width */
.foot { padding: 0 var(--m) 32px; display: grid; gap: 32px; }
.foot-mark { font: 600 clamp(6rem, 30vw, 30rem)/0.8 var(--font); letter-spacing: -0.07em; margin-left: -0.04em; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 0.9375rem; }
.foot nav { display: flex; gap: 28px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; padding: 6px 0; }
.credits { font-size: 13px; color: var(--muted); max-width: 90ch; }

/* MOTION: entrances once; content shows without script */
.js [data-r] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js [data-r].in { opacity: 1; transform: none; }
.ch-stage .float { transition: transform .5s cubic-bezier(.2,.7,.2,1) .35s, opacity .5s ease .35s; }
.js .ch-stage:not(.in) .float { opacity: 0; transform: translateY(16px); }
.stage-bg { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateX(-2%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-r], .js .ch-stage:not(.in) .float { opacity: 1; transform: none; transition: none; }
  .stage-bg { animation: none; }
  .btn { transition: none; }
}

/* TABLET */
@media (max-width: 1000px) {
  .nav nav { display: none; }
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .ch-head, .security, .alpha { grid-template-columns: 1fr; }
  .ch-head h2, .ch-head p, .sec-copy, .sec-ui, .alpha-copy, .alpha-photo { grid-column: 1; }
  .ch-stage { padding-top: 112px; }
  .float { left: clamp(24px, 5vw, 80px); right: auto; }
  .alpha-photo img { aspect-ratio: 16 / 10; }
}
/* PHONE */
@media (max-width: 640px) {
  .hero { padding-top: 120px; }
  .join { flex-direction: column; }
  .join .btn { width: 100%; }
  .stage { height: 460px; }
  .stage .atropos { width: 760px; margin-left: 16px; justify-self: start; }
  .split { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; }
  .ch-stage { padding: 104px 16px 24px; }
  .ch-stage:has(.float-wide) { padding-top: 160px; }
  .float { left: 16px; right: 16px; max-width: none; top: 20px; }
  .approve, .pb { flex-direction: column; align-items: stretch; }
  .pb .seg-mini { flex: none; }
}
