/* tner landing page. One motif: the 14-night cell. */
:root {
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --field: #ECEAE3;
  --ink: #171B19;
  --muted: #5C645F;
  --accent: #1E6B4F;
  --accent-ink: #FFFFFF;
  --tint: #E4F1EA;
  --tint-2: #BFE0CF;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  --step-display: clamp(2.75rem, 1.2rem + 7vw, 7.5rem);
  --margin: clamp(16px, 2.2vw, 32px);
  --gutter: clamp(12px, 1.6vw, 24px);
  --gap-section: clamp(120px, 14vw, 220px);
  --cell: 18%;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-hover: 160ms;
  --t-press: 90ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.display { font-family: var(--font-display); font-size: var(--step-display); line-height: 0.96; letter-spacing: -0.035em; font-weight: 600; }
.head { font-family: var(--font-display); font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.025em; font-weight: 600; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 42ch; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
section { padding-block: 0; margin-top: var(--gap-section); }

/* motif: the cell */
.cell { border-radius: var(--cell) / var(--cell); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 3.25rem; padding: 0 1.5rem; background: var(--ink); color: var(--accent-ink); border: 0; border-radius: 14px; text-decoration: none; white-space: nowrap; font-weight: 600; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:hover { background: var(--accent); }
.button:active { transform: scale(0.97); }
.button--accent { background: var(--accent); }
.button--accent:hover { background: var(--ink); }
.list { list-style: none; padding: 0; }
.list li { position: relative; padding-left: 1.5em; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.8em; height: 0.8em; background: var(--accent); border-radius: 22%; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--gutter); min-height: 72px; }
.nav__mark { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--accent); text-decoration: none; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-weight: 500; }
.nav__links a:hover { color: var(--accent); }
@media (max-width: 760px) { .nav__links { display: none; } }

/* hero */
.hero { margin-top: 0; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; position: relative; overflow: hidden; }
.hero__copy { position: relative; padding-top: clamp(40px, 7vh, 96px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-content: start; }
.hero__title { grid-column: 1 / 9; grid-row: 1; max-width: 14ch; }
.hero__lead { grid-column: 1 / 8; grid-row: 2; margin-top: clamp(24px, 3vw, 40px); }
.hero__actions { grid-column: 1 / 9; grid-row: 3; margin-top: clamp(28px, 3.5vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__mask { align-self: end; margin-top: clamp(40px, 7vh, 96px); }
.hero__facts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.hero__facts p + p { grid-column: 8 / 13; margin-bottom: 18px; max-width: 34ch; }
.hero__caption { grid-column: 1 / 8; margin-bottom: 18px; max-width: 40ch; }
.mask { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: clamp(4px, 0.6vw, 10px); }
.mask--giant { height: clamp(140px, 30vh, 300px); margin-bottom: calc(-1 * clamp(70px, 15vh, 150px)); }
.mask > i { display: block; background: var(--accent); border-radius: var(--cell) / 14%; }
.mask > i.away { background: var(--field); }
.mask > i.nosig { background: var(--tint); }
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero__mask { margin-top: clamp(40px, 8vh, 80px); }
}
@media (max-width: 760px) {
  .hero__title, .hero__lead, .hero__actions, .hero__caption { grid-column: 1 / -1; }
  .hero__facts p + p { grid-column: 1 / -1; margin-top: 12px; }
  .mask--giant { height: 22vh; margin-bottom: -11vh; }
}

/* how it works */
.how__head { grid-column: 1 / 8; }
.how__intro { grid-column: 1 / 6; margin-top: 20px; }
.how__diagram { grid-column: 1 / -1; margin-top: clamp(32px, 4vw, 56px); }
.how__diagram svg { width: 100%; height: auto; display: block; }
.how__steps { grid-column: 1 / -1; margin-top: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 24px; }
.how__steps h3 { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.01em; font-weight: 600; margin-bottom: 8px; }
.how__privacy { grid-column: 1 / 8; margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 900px) {
  .how__head, .how__intro, .how__privacy { grid-column: 1 / -1; }
  .how__steps { grid-template-columns: 1fr; }
}

/* showcase: object on the cell */
.index { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.index__stage { grid-column: 6 / 13; position: relative; aspect-ratio: 1 / 1; max-height: 72vh; margin-inline: auto; width: min(100%, 72vh); }
.index__disc { position: absolute; inset: 8% 0 0 0; background: var(--tint); border-radius: var(--cell); transition: background-color 300ms ease; }
.index__disc.is-alt { background: var(--field); }
.index__shots { position: absolute; left: 50%; top: 0; height: 100%; width: 46%; transform: translateX(-50%); }
.index__shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 9% / 4.2%; opacity: 0; transition: opacity 300ms ease; }
.index__shots img.is-on { opacity: 1; }
.index__list { grid-column: 1 / 6; list-style: none; padding: 0; margin: 0; align-self: end; }
.index__list h2 { margin-bottom: 0.35em; color: var(--muted); }
.index__row { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0.12em 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1rem + 2.6vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--muted); cursor: pointer; transition: color var(--t-hover) ease, transform var(--t-hover) var(--ease-out); }
.index__row:hover, .index__row[aria-pressed="true"] { color: var(--ink); }
.index__row:hover { transform: translateX(6px); }
.index__fact { grid-column: 1 / 6; margin-top: 24px; min-height: 3.2em; max-width: 40ch; }
@media (max-width: 900px) {
  .index__stage { grid-column: 1 / -1; width: min(86vw, 70vh); margin-bottom: 24px; order: -1; }
  .index__list, .index__fact { grid-column: 1 / -1; }
}

/* panorama band */
.pano__head { grid-column: 1 / 8; }
.pano__copy { grid-column: 8 / 13; }
.pano__copy { align-self: end; max-width: 44ch; }
.pano__band { grid-column: 1 / -1; margin-top: clamp(24px, 3vw, 40px); overflow: hidden; border-radius: var(--cell) / 40%; background: var(--field); aspect-ratio: 16 / 4; }
.pano__band img { width: 160%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.pano__steps { grid-column: 1 / -1; margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 20px; }
@media (max-width: 900px) {
  .pano__head, .pano__copy { grid-column: 1 / -1; }
  .pano__copy { margin-top: 16px; }
  .pano__band { aspect-ratio: 16 / 7; }
  .pano__band img { width: 260%; }
  .pano__steps { grid-template-columns: 1fr; }
}

/* close-ups board */
.board { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 8px; }
.tile { position: relative; overflow: hidden; border-radius: 14px; background: var(--surface); padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile--ink { background: var(--ink); color: var(--accent-ink); }
.tile--accent { background: var(--accent); color: var(--accent-ink); }
.tile--tint { background: var(--tint); }
.tile--field { background: var(--field); }
.tile__name { font-weight: 600; font-size: var(--step-body); position: relative; line-height: 1.3; }
.tile__line { font-size: var(--step-small); position: relative; }
.tile--ink .tile__line, .tile--accent .tile__line { color: #D6E6DD; }
.tile > [data-ui] { position: absolute; font-size: 190%; transform-origin: top left; pointer-events: none; }
.tile__cap { position: relative; margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 2px; background: inherit; }
.t-head { grid-column: span 6; grid-row: span 2; justify-content: flex-start; }
.t-head .head { font-size: clamp(1.75rem, 1rem + 2.6vw, 2.75rem); }
.index__shots video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 9% / 4.2%; opacity: 0; transition: opacity 300ms ease; }
.index__shots video.is-on { opacity: 1; }
.t-share { grid-column: span 6; grid-row: span 4; }
.t-mask { grid-column: span 6; grid-row: span 2; }
.t-chip { grid-column: span 3; grid-row: span 2; }
.t-pin { grid-column: span 3; grid-row: span 2; }
.t-ring { grid-column: span 3; grid-row: span 4; }
.t-kind { grid-column: span 3; grid-row: span 4; }
.t-private { grid-column: span 6; grid-row: span 2; }
@media (max-width: 900px) {
  .board { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(120px, auto); gap: 6px; }
  .t-head { grid-column: 1 / -1; grid-row: span 1; min-height: 140px; }
  .t-share, .t-mask, .t-private { grid-column: 1 / -1; grid-row: span 1; min-height: 230px; }
  .t-chip, .t-pin, .t-ring, .t-kind { grid-column: span 1; grid-row: span 1; min-height: 200px; }
  .tile { padding: 16px; }
  .tile > [data-ui] { font-size: 150%; }
}
}
/* the real UI fragments, in em so the tile's font-size scales them */
[data-ui] { font-family: var(--font-text); font-size: 1em; line-height: 1.3; }
.ui-chip { display: inline-flex; align-items: center; gap: 0.4em; height: 1.9em; padding: 0 0.7em; background: var(--tint); color: var(--accent); border-radius: 999em; font-weight: 600; font-size: 0.52em; white-space: nowrap; }
.ui-chip svg { width: 1em; height: 1em; }
.ui-pin { display: inline-flex; align-items: center; gap: 0.35em; height: 2em; padding: 0 0.7em; background: var(--ink); color: #fff; border-radius: 999em; font-weight: 600; font-size: 0.62em; }
.ui-pin svg { width: 0.8em; height: 0.8em; }
.ui-mask { display: grid; grid-template-columns: repeat(14, 1.6em); gap: 0.25em; }
.ui-mask i { display: block; height: 1.6em; background: var(--accent); border-radius: 0.35em; }
.ui-mask i.away { background: var(--field); }
.ui-mask i.nosig { background: var(--tint); outline: 0.09em dashed #C98A1E; outline-offset: -0.09em; }
.ui-share { width: 14em; padding: 0.9em; background: var(--tint); border-radius: 0.9em; color: var(--ink); }
.ui-share__title { display: flex; align-items: center; gap: 0.5em; color: var(--accent); font-weight: 600; font-size: 0.6em; }
.ui-share__title svg { width: 1.2em; height: 1.2em; }
.ui-share__num { font-family: var(--font-display); font-weight: 600; font-size: 0.62em; margin-top: 0.4em; letter-spacing: 0.02em; }
.ui-share__btn { margin-top: 0.6em; height: 2.4em; display: flex; align-items: center; justify-content: center; border: 0.1em solid var(--accent); border-radius: 0.6em; color: var(--accent); font-weight: 600; font-size: 0.6em; background: #fff; }
.ui-ring { width: 7em; height: 7em; }
.ui-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; width: 15em; }
.ui-kind span { display: block; padding: 0.7em; border-radius: 0.8em; background: #fff; border: 0.1em solid #D5D3CC; }
.ui-kind span.on { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.ui-kind b { display: block; font-size: 0.72em; }
.ui-kind small { display: block; font-size: 0.62em; color: var(--muted); margin-top: 0.2em; }
.ui-line { font-size: 0.6em; color: var(--muted); white-space: nowrap; }
.ui-line b { color: var(--ink); }

/* faq cards */
.faq__head { grid-column: 3 / 11; }
.faq__cards { grid-column: 3 / 11; margin-top: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; }
.card { position: relative; margin-top: -24px; border-radius: 0 14px 14px 14px; padding: 0; }
.card:first-child { margin-top: 0; }
.card--a { background: var(--surface); } .card--b { background: var(--tint); } .card--c { background: var(--field); }
.card__tab { position: absolute; top: -34px; left: 0; height: 34px; width: 200px; padding: 0 16px; display: flex; align-items: center; font-size: 1rem; font-weight: 500; background: inherit; clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%); border-radius: 12px 0 0 0; }
.card__q { width: 100%; min-height: 96px; padding: 24px 24px 22px; text-align: left; background: none; border: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card__q::after { content: "+"; font-size: 1.6rem; line-height: 1; flex: 0 0 auto; color: var(--accent); transition: transform 200ms var(--ease-out); }
.card[open] .card__q::after { transform: rotate(45deg); }
.card__a { padding: 0 24px 28px; max-width: 54ch; }
.card__a p + p { margin-top: 0.75em; }
.card + .card { margin-top: 24px; }
.card:nth-child(2) .card__tab { left: 150px; } .card:nth-child(3) .card__tab { left: 300px; } .card:nth-child(4) .card__tab { left: 60px; } .card:nth-child(5) .card__tab { left: 210px; } .card:nth-child(6) .card__tab { left: 360px; }
@media (max-width: 900px) {
  .faq__head, .faq__cards { grid-column: 1 / -1; }
  .card__tab { width: 120px; }
  .card:nth-child(2) .card__tab { left: 48px; } .card:nth-child(3) .card__tab { left: 96px; } .card:nth-child(4) .card__tab { left: 0; } .card:nth-child(5) .card__tab { left: 48px; } .card:nth-child(6) .card__tab { left: 96px; }
  .card__q { font-size: 1.15rem; padding: 20px; min-height: 88px; }
  .card__a { padding: 0 20px 24px; }
}
.card + .card { margin-top: 40px; }

/* cta: the calculator, already open */
.cta { background: var(--accent); color: var(--accent-ink); min-height: 90svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; padding-block: clamp(56px, 8vh, 96px); margin-top: var(--gap-section); }
.cta__close { grid-column: 1 / 7; align-self: end; }
.cta__close .display { font-size: clamp(2.5rem, 1rem + 5.6vw, 6rem); }
.cta__close p { margin-top: 20px; max-width: 38ch; color: #D6E6DD; }
.calc { grid-column: 7 / 12; width: min(100%, 440px); justify-self: end; background: var(--surface); color: var(--ink); border-radius: 18px; padding: 28px; }
.calc h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; }
.calc label { display: block; margin-top: 20px; font-weight: 600; font-size: 0.9375rem; color: var(--muted); }
.calc__field { margin-top: 8px; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px; background: var(--bg); border: 2px solid #D5D3CC; border-radius: 14px; }
.calc__field:focus-within { border-color: var(--accent); }
.calc__field input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.25rem; font-weight: 500; outline: 0; }
.calc__seg { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.calc__seg button { height: 48px; border: 2px solid #D5D3CC; border-radius: 12px; background: #fff; font-weight: 600; cursor: pointer; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease; }
.calc__seg button[aria-pressed="true"] { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.calc__out { margin-top: 20px; padding: 16px; background: var(--tint); border-radius: 14px; }
.calc__out strong { font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.02em; display: block; line-height: 1.05; }
.calc__out .small { margin-top: 6px; display: block; }
.calc .button { margin-top: 20px; width: 100%; min-height: 56px; }
.calc__note { margin-top: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .cta { min-height: 84svh; align-content: start; }
  .cta__close { grid-column: 1 / -1; align-self: start; }
  .calc { grid-column: 1 / -1; justify-self: stretch; width: 100%; margin-top: 40px; padding: 20px; }
}

/* footer: the mark built from blocks */
.footer { margin-top: 0; background: var(--field); padding-block: clamp(48px, 7vh, 80px) 32px; }
.mark { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: clamp(160px, 34svh, 360px); align-items: end; }
.mark span { display: flex; align-items: flex-end; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--bg); font-size: clamp(5rem, 16vw, 18rem); line-height: 0.8; letter-spacing: -0.04em; padding-bottom: 0.05em; border-radius: 14px; overflow: hidden; }
.mark span:nth-child(1) { height: 100%; background: var(--accent); }
.mark span:nth-child(2) { height: 78%; background: var(--ink); }
.mark span:nth-child(3) { height: 90%; background: var(--accent); }
.mark span:nth-child(4) { height: 66%; background: var(--ink); }
.footer__rows { margin-top: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 24px; }
.footer__links { grid-column: 1 / 9; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); list-style: none; margin: 0; padding: 0; }
.footer__links a { text-decoration: none; font-weight: 500; }
.footer__links a:hover { color: var(--accent); }
.footer__contact { grid-column: 9 / 13; }
.footer__last { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.footer__top { min-height: 2.5rem; padding-inline: 1rem; font-size: 0.9375rem; }
@media (max-width: 760px) {
  .mark { height: 22svh; }
  .footer__links { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; }
}

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .mask--giant > i { transform: scaleY(0); transform-origin: bottom; transition: transform 700ms var(--ease-out); }
  .js .mask--giant.is-in > i { transform: none; }
  .js .how__diagram rect { transition: transform 900ms var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pano__band img { transform: none !important; }
}

.hero__shot { grid-column: 9 / 13; grid-row: 1 / 4; align-self: start; justify-self: end; width: min(100%, 300px); margin-top: clamp(8px, 2vh, 24px); border-radius: var(--cell) / 8.5%; overflow: hidden; background: var(--field); }
.hero__shot img { width: 100%; height: auto; }
@media (max-width: 900px) { .hero__shot { display: none; } }
/* type consolidation */
.how__steps h3, .calc h3 { font-size: var(--step-lead); }
.card__q { font-size: var(--step-lead); }
.calc label, .footer__top, .small { font-size: var(--step-small); }
.calc__out strong { font-size: var(--step-head); }
.tile--ink .tile__line, .tile--accent .tile__line { color: #D6E6DD; }
.tile--ink .tile__cap, .tile--accent .tile__cap { background: inherit; }
/* fragment roots whose own text is the element: keep them below headline size */
.tile > .ui-chip { font-size: 105%; }
.tile > .ui-pin { font-size: 160%; }
.tile > .ui-line { font-size: 115%; }
@media (max-width: 900px) { .tile > .ui-chip { font-size: 95%; } .tile > .ui-line { font-size: 100%; } }
