/* Fenrir Unlimited (/unlimited) — the approved mockup's look, without the
   mockup-only control bar: warm palette, Didot headline with the orange
   italic phrase, Manrope body, square buttons and hairline rules. Only the
   stylesheet's own classes are here; every word the page shows is filled in by
   unlimited.js from the #unlimited-text JSON the server injects
   (backend/unlimited_text.py PAGE).

   The header and the theme are the homepage's (CEO 2026-11-25): the same logo
   (static/landing/mark.svg and the FENRIR wordmark, at the homepage's size and
   spacing), and the same Light / Dark / System choice, applied by the
   homepage's own theme.js under the homepage's key, so one choice holds on
   both pages. The two palettes below are the homepage's colours
   (static/landing/landing.css) under this page's token names:
   --fg = --text, --dim = --muted; --line2 (the soft row rule) and --dim2 (the
   quietest text) are this page's own extra steps, the same distance from the
   page colour in both palettes. */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("manrope-latin.woff2") format("woff2");
}

/* Ink is the root palette: an explicit Dark, and a page served without
   data-theme. The page ships data-theme="system", theme.js's default. */
:root {
  color-scheme: dark;
  --bg: #15130f;
  --panel: #1d1a15;
  --line: #3a342b;
  --line2: #2b261f;
  --fg: #f1ece3;
  --dim: #a9a093;
  --dim2: #7d7466;
  --accent: #E4572E;
  --accent-ink: #15130f;
  --accent-soft: rgba(228, 87, 46, 0.1);
  --accent-line: rgba(228, 87, 46, 0.35);
  --accent-glow: rgba(228, 87, 46, 0.35);
  --accent-pulse: rgba(228, 87, 46, 0.55);
  --accent-pulse-end: rgba(228, 87, 46, 0);
  --grain: 0.07;
  --serif: Didot, "Bodoni 72", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Light, and System on a light device (as on the homepage). */
:root[data-theme="light"], :root[data-theme="system"] {
  color-scheme: light;
  --bg: #f3efe7;
  --panel: #ece6da;
  --line: #d9d1c3;
  --line2: #e5dfd3;
  --fg: #1a1713;
  --dim: #6d655a;
  --dim2: #7a7165;
  --accent: #BC3D18;
  --accent-ink: #fff;
  --accent-soft: rgba(188, 61, 24, 0.07);
  --accent-line: rgba(188, 61, 24, 0.3);
  --accent-glow: rgba(188, 61, 24, 0.18);
  --accent-pulse: rgba(188, 61, 24, 0.45);
  --accent-pulse-end: rgba(188, 61, 24, 0);
  --grain: 0.05;
}

@media (prefers-color-scheme: dark) {
  /* A dark device: System paints ink, while an explicit Light stays on paper. */
  :root[data-theme="system"] {
    color-scheme: dark;
    --bg: #15130f;
    --panel: #1d1a15;
    --line: #3a342b;
    --line2: #2b261f;
    --fg: #f1ece3;
    --dim: #a9a093;
    --dim2: #7d7466;
    --accent: #E4572E;
    --accent-ink: #15130f;
    --accent-soft: rgba(228, 87, 46, 0.1);
    --accent-line: rgba(228, 87, 46, 0.35);
    --accent-glow: rgba(228, 87, 46, 0.35);
    --accent-pulse: rgba(228, 87, 46, 0.55);
    --accent-pulse-end: rgba(228, 87, 46, 0);
    --grain: 0.07;
  }
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain);
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}
.narrow { max-width: 860px; margin: 0 auto; }

/* nav: the homepage's masthead (static/landing/landing.css .site-header,
   .header-inner, .brand, .desktop-nav): its height, rule, logo and link type. */
header { border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
/* The homepage's .container, so the logo sits where it sits on the homepage. */
header .wrap { max-width: none; width: min(1120px, calc(100% - 96px)); padding-inline: 0; }
@media (max-width: 1100px) { header .wrap { width: calc(100% - 64px); } }
@media (max-width: 600px) { header .wrap { width: calc(100% - 40px); } }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
/* The homepage's mark (its own file), painted in the page's text colour. */
.brand-mark {
  flex: none; width: 28px; height: 28px; background: var(--fg);
  -webkit-mask-image: url("/assets/landing/mark.svg"); mask-image: url("/assets/landing/mark.svg");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.brand span:last-child { font-family: var(--serif); font-size: 18px; letter-spacing: .32em; }
.nav-r {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.nav-r a { text-decoration: none; }
.nav-r a:hover { color: var(--fg); }
.lang { display: flex; gap: 2px; }
.lang button {
  background: none;
  border: 0;
  color: var(--dim2);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 4px 6px;
}
.lang button.on { color: var(--accent); }

/* hero */
.hero { text-align: center; padding: 72px 0 44px; }
.eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1.05;
  margin: 18px 0;
  letter-spacing: -0.01em;
}
h1 em { color: var(--accent); font-style: italic; }
.sub { max-width: 540px; margin: 0 auto; color: var(--fg); opacity: 0.86; font-size: 16px; }
.counter { max-width: 380px; margin: 30px auto 0; font-size: 15px; color: var(--fg); font-weight: 500; }
.counter b { color: var(--accent); font-weight: 700; font-size: 18px; }
.bar { height: 4px; background: var(--line2); margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width 0.4s; }

/* plans */
.plans { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; margin-top: 8px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
}
.card.main { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft), 0 30px 80px -40px var(--accent-glow); }
.tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.card.main .tag { color: var(--accent); }
.price { font-family: var(--serif); font-size: 46px; line-height: 1; margin: 16px 0 4px; }
.price small { font-family: var(--sans); font-size: 14px; color: var(--dim); margin-left: 6px; }
.alt { font-size: 13px; color: var(--dim2); min-height: 20px; }
.alt s { color: var(--dim2); }
.idr, .idr-i { display: none; }
body.in-id .idr { display: block; }
/* CEO 2026-11-25: the rupiah price stands out for Indonesian visitors. */
body.in-id .alt.idr { font-size: 19px; font-weight: 600; color: var(--fg); margin: 2px 0 6px; min-height: 0; }
body.in-id .alt .idr-i { color: var(--dim); }
/* CEO 2026-11-25: the founding spots left, inside the card (urgency). */
.spots { margin: 16px 0 2px; padding: 12px 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.spots[hidden] { display: none; }
.spots-t { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--fg); }
.spots-t b { color: var(--accent); font-size: 17px; font-weight: 800; }
.spots .bar { margin-top: 10px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-pulse); } 50% { opacity: 0.7; box-shadow: 0 0 0 6px var(--accent-pulse-end); } }
@media (prefers-reduced-motion: reduce) { .live { animation: none; } }
body.in-id .idr-i { display: inline; }
.note { font-size: 14px; color: var(--dim); margin: 14px 0 24px; flex: 1; }
.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:hover { filter: brightness(1.08); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.waitform { display: none; gap: 8px; }
.waitform input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  padding: 12px;
}
.soldout .waitform { display: flex; }
.soldout .claim { display: none; }
/* The attributes override the display rules above: a form or button the page
   itself hides stays hidden whatever the sold-out class says. */
.waitform[hidden], .claim[hidden], .waitsay[hidden], .soldnote[hidden] { display: none; }
.waitsay { font-size: 12.5px; color: var(--dim); margin: 10px 0 0; }
.soldnote { font-size: 12.5px; color: var(--dim2); margin: 8px 0 0; }
.dayleft { font-size: 13px; color: var(--dim); margin: 10px 0 0; }
.dayleft b { color: var(--accent); font-weight: 700; }
.dayleft[hidden] { display: none; }

/* Invite only (CEO 2026-11-25): the code box above the plans, and the locked
   buy buttons until a code is accepted. The waitlist form moves into the box
   (under the inv_none line) while the page is invite only. */
.invite {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px 28px;
  margin: 8px 0 16px;
}
.inv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 14px 32px; align-items: start; }
.inv-tag { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.inv-tag::before,
.btn.lock::before {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 7V5a3.5 3.5 0 0 1 7 0v2h.5a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1.5 0h4V5a2 2 0 0 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 7V5a3.5 3.5 0 0 1 7 0v2h.5a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1.5 0h4V5a2 2 0 0 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.inv-sub { margin: 8px 0 0; font-size: 14px; color: var(--dim); }
.invform { display: flex; gap: 8px; }
.invform input,
.invite .waitform input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  padding: 12px;
}
.invform input { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.invform input::placeholder { font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--dim2); }
.invform input:focus,
.invite .waitform input:focus { outline: none; border-color: var(--accent); }
.invform .btn,
.invite .waitform .btn { flex: none; min-width: 124px; padding-inline: 18px; }
/* In the box the code is the main action; the waitlist button is the quiet one. */
.invite .waitform .btn.primary { background: transparent; border-color: var(--line); color: var(--fg); }
.invite .waitform .btn.primary:hover { border-color: var(--dim2); filter: none; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.invok {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-height: 47px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--accent);
}
.invcode { font-weight: 700; letter-spacing: 0.16em; word-break: break-all; }
.invchange {
  background: none;
  border: 0;
  padding: 0;
  color: var(--dim);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.invchange:hover { color: var(--fg); }
.invsay { font-size: 13px; color: var(--accent); margin: 10px 0 0; }
.invsay.good { color: var(--fg); }
.invsay.good::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.inv-wait { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line2); }
.inv-none { margin: 0; font-size: 13.5px; color: var(--dim); }
.invite .waitform { display: flex; }
.btn.lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
}
.btn.lock::before { color: var(--accent); }
.btn.lock:hover { color: var(--fg); border-color: var(--dim2); filter: none; }
/* Whatever the display rules above say, an element the page hides stays hidden. */
[hidden] { display: none !important; }

/* included */
h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 18px; }
section.block { padding: 64px 0 0; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line2); }
.row .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.row .v { font-size: 15px; }

/* agreement line under the plans */
.agree { font-size: 12.5px; color: var(--dim2); margin: 16px 0 0; }
.agree a, .nots a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* how it works */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; position: relative; padding: 15px 0 15px 34px; border-bottom: 1px solid var(--line2); font-size: 15px; color: var(--dim); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 13px; font-family: var(--serif); font-size: 20px; line-height: 1.1; color: var(--accent); }
.steps li b { color: var(--fg); font-weight: 600; }

/* fair use and the rules */
.rules-fair { font-size: 15px; max-width: 680px; margin: 0 0 22px; }
#rules h3 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin: 0 0 6px; }
.nots { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nots li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line2); font-size: 15px; }
.nots li::before { content: "×"; position: absolute; left: 2px; top: 10px; color: var(--accent); font-size: 17px; }
.rules-check { font-size: 13.5px; color: var(--dim); max-width: 680px; margin: 14px 0 0; }

/* faq */
details { border-bottom: 1px solid var(--line2); padding: 16px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--dim); font-size: 18px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--dim); max-width: 640px; }

footer { margin-top: 72px; border-top: 1px solid var(--line2); position: relative; z-index: 1; }
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 24px;
  font-size: 12px;
  color: var(--dim2);
}
footer a { text-decoration: none; margin-left: 18px; }
footer a:hover { color: var(--fg); }
footer .wrap { align-items: center; }
footer .f-links { margin-left: auto; }

/* The homepage's theme switch (landing.css .theme-switch), at the foot of the
   page as on the homepage: three square segments, the chosen one inverted.
   theme.js marks the choice (.on, aria-checked) and wires clicks and arrows. */
.theme-switch { display: inline-flex; border: 1px solid var(--line); margin-left: 6px; }
.theme-switch button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s;
}
.theme-switch button:last-child { border-right: 0; }
.theme-switch button:hover { color: var(--fg); }
.theme-switch button.on { background: var(--fg); color: var(--bg); }
.theme-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .theme-switch button { transition: none; } }

@media (max-width: 720px) {
  .hero { padding: 48px 0 32px; }
  .plans { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .invite { padding: 20px; }
  .inv-row { grid-template-columns: minmax(0, 1fr); }
  .invform .btn,
  .invite .waitform .btn { min-width: 0; }
  .nav-r .hide-sm { display: none; }
  /* The homepage's phone masthead: a shorter bar, a smaller wordmark and links. */
  header .wrap { min-height: 64px; gap: 12px 14px; }
  .brand span:last-child { font-size: 17px; letter-spacing: .28em; }
  .nav-r { gap: 14px; font-size: 11px; letter-spacing: 0.06em; }
  footer a { margin-left: 0; margin-right: 18px; }
  footer .f-links { margin-left: 0; }
  .theme-switch { margin-left: 0; }
}