/* My Second Kundli: tokens, base and the landing page. Version 7: calm paper ground, navy stages, 3D icons and buttons. */
@font-face { font-family: "Samarkan"; src: url("../fonts/samarkan.woff2") format("woff2"), url("../fonts/samarkan.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* the brand colours, unchanged */
  --navy: #081461;
  --navy-2: #0B1A77;
  --navy-3: #13248F;
  --navy-deep: #050D45;
  --gold: #EDB50C;
  --gold-hi: #FFD54A;
  --gold-deep: #B98A05;
  --saffron: #FF6200;
  --saffron-hi: #FF7E2B;
  --saffron-deep: #C24A00;

  /* new proportions: paper is the ground, navy the ink and the stages, gold the accent, saffron only for buttons */
  --paper: #F4F3EF;
  --paper-2: #EAE8E1;
  --card: #FBFAF7;
  --ink: #0A145A;
  --ink-2: #4A5390;
  --line: rgba(8, 20, 97, .12);
  --on-navy: #F4F3EF;
  --on-navy-2: #B9C0EA;

  --brand: "Samarkan", Georgia, serif;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --s-small: 15px;
  --s-body: 18px;
  --s-mid: clamp(24px, 2.3vw, 34px);
  --s-head: clamp(48px, 6.2vw, 104px);

  --m: clamp(16px, 3vw, 44px);
  --gap: clamp(112px, 13vw, 200px);
  --r-card: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --calm: cubic-bezier(.45, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--s-body)/1.6 var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--on-navy); padding: 10px 16px; z-index: 60; border-radius: 10px; }
.skip:focus { left: 8px; }

h2, .h2 { font: 400 var(--s-head)/.98 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
h2 em { color: var(--ink-2); }

/* 3D buttons: a raised key with a darker edge that presses down when you tap it. */
/* taste-skill-ignore: gradients and edge shadows are the requested 3D look */
.btn {
  --edge: var(--saffron-deep);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, var(--saffron-hi), var(--saffron) 60%);
  color: var(--navy-deep); font: 700 17px/1 var(--text); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 5px 0 var(--edge), 0 14px 22px -10px rgba(194, 74, 0, .6);
  transform: translateY(0); transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 7px 0 var(--edge), 0 20px 28px -12px rgba(194, 74, 0, .6); filter: saturate(1.08); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 0 var(--edge), 0 4px 8px -4px rgba(194, 74, 0, .5); transition-duration: .08s; }
.btn--lg { min-height: 62px; padding: 0 38px; font-size: 18px; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 0 var(--edge); }
.btn--sm:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 0 var(--edge); }
.btn--quiet { --edge: #D3D0C6; background: linear-gradient(180deg, #FFFFFF, var(--card)); color: var(--ink); box-shadow: inset 0 1px 0 #fff, 0 5px 0 var(--edge), 0 14px 22px -12px rgba(8, 20, 97, .3); }
.btn--quiet:hover { box-shadow: inset 0 1px 0 #fff, 0 7px 0 var(--edge), 0 20px 28px -14px rgba(8, 20, 97, .3); }
.btn--navy { --edge: var(--navy-deep); background: linear-gradient(180deg, var(--navy-3), var(--navy) 70%); color: var(--gold-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 5px 0 var(--edge), 0 14px 22px -10px rgba(5, 13, 69, .55); }
.btn--navy:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 7px 0 var(--edge), 0 20px 28px -12px rgba(5, 13, 69, .55); }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--ink); }
.link::after { content: "→"; transition: transform .4s var(--ease); }
.link:hover::after { transform: translateX(5px); }
.link:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Bar: a floating navy pill, so the logo keeps its own gold-on-navy colours */
.bar {
  position: sticky; top: 12px; z-index: 30; display: flex; align-items: center; gap: 28px;
  margin: 12px var(--m) 0; padding: 10px 10px 10px 16px; border-radius: 999px;
  background: rgba(8, 20, 97, .94); color: var(--on-navy);
  box-shadow: 0 18px 40px -24px rgba(5, 13, 69, .7); /* taste-skill-ignore: floating bar */
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.bar__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold); }
.bar__brand img { width: 40px; height: 40px; border-radius: 8px; }
.bar__word { font: 400 26px/1 var(--brand); color: var(--gold); white-space: nowrap; }
.tm { font: 600 .42em/1 var(--body, system-ui, sans-serif); vertical-align: super; margin-left: 2px; opacity: .85; }
.bar__brand .tm { font-size: 11px; align-self: flex-start; margin: 6px 0 0 -8px; vertical-align: baseline; }
.bar__links { display: flex; gap: 30px; margin-left: auto; font-size: var(--s-small); font-weight: 500; }
.bar__links a { text-decoration: none; color: var(--on-navy-2); transition: color .2s ease; }
.bar__links a:hover { color: var(--on-navy); }
.bar__start { margin-left: 8px; }

/* Hero: the logo big and whole, centred on its navy stage, with the name and one button */
.hero { padding: 16px 12px 0; }
.hero__name { position: relative; margin-top: 22px; font: 400 clamp(52px, min(6.6vw, 10.5svh), 112px)/1.1 var(--brand); color: var(--gold); white-space: nowrap; }
.hero__line { position: relative; margin-top: 10px; max-width: 40ch; font: italic 400 clamp(24px, 2.4vw, 36px)/1.2 var(--display); color: var(--on-navy); text-align: center; }
.hero__btn { margin-top: 28px; min-width: 260px; }
.hero__again { position: relative; margin-top: 16px; font-size: var(--s-small); color: var(--on-navy-2); text-align: center; }
.hero__again a { color: var(--gold); font-weight: 600; text-underline-offset: 3px; }
.hero__again a:hover { color: var(--on-navy); }
.stage {
  position: relative; overflow: hidden; border-radius: 36px; min-height: calc(100svh - 100px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 32px 40px;
  background: radial-gradient(120% 90% at 50% 38%, var(--navy-3) 0%, var(--navy) 46%, var(--navy-deep) 100%); /* taste-skill-ignore: the stage's depth */
  color: var(--on-navy); perspective: 900px;
}
.stage__rings { position: absolute; left: 50%; top: 40%; width: 0; height: 0; pointer-events: none; }
.stage__rings i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(237, 181, 12, .22); transform: translate(-50%, -50%); }
.stage__rings i:nth-child(1) { width: 640px; height: 640px; border-style: dashed; border-color: rgba(237, 181, 12, .28); }
.stage__rings i:nth-child(2) { width: 860px; height: 860px; }
.stage__rings i:nth-child(3) { width: 1100px; height: 1100px; border-color: rgba(237, 181, 12, .12); }
.stage__float { position: relative; width: min(47svh, 600px, 84%); transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .9s var(--ease); }
.hero__chart { position: relative; aspect-ratio: 1; filter: drop-shadow(0 30px 40px rgba(2, 6, 40, .55)); } /* taste-skill-ignore: lifts the logo off the stage */
.hero__chart img { width: 100%; height: auto; }

/* Old kundli vs second kundli */
.compare { margin-top: var(--gap); padding: 0 var(--m); }
.compare__head { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 64px; align-items: end; }
.compare__head h2 em { display: block; }
.compare__head p { max-width: 46ch; }
.compare__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 72px; }
.col { padding: 48px clamp(24px, 3.4vw, 56px) 52px; border-radius: var(--r-card); }
.col--old { background: var(--paper-2); color: var(--ink-2); }
.col--new { background: var(--navy); color: var(--on-navy); }
.col h3 { font: 400 var(--s-mid)/1.1 var(--display); margin-bottom: 24px; color: var(--ink); }
.col--new h3 { color: var(--gold); }
.checks li { position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--line); }
.col--new .checks li { border-top-color: rgba(244, 243, 239, .12); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 28px; height: 28px; border-radius: 50%;
  background: #DCD9D0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='%234A5390' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
/* small 3D gold beads for the second kundli */
.checks--new li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8' fill='none' stroke='%23050D45' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/17px no-repeat, radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 3px 0 #8E6A03, 0 6px 10px -4px rgba(0, 0, 0, .5);
}

/* Pillars: two rows of three, each with a 3D tile icon */
.pillars { margin-top: var(--gap); padding: 0 var(--m); }
.pillars__head { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 64px; align-items: end; margin-bottom: 64px; }
.pillars__head p { max-width: 42ch; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard {
  position: relative; width: 100%; height: 100%; min-height: 340px; display: flex; flex-direction: column; align-items: flex-start;
  padding: 32px 32px 28px; border: 1px solid var(--line); border-radius: var(--r-card); text-align: left; 
  background: var(--card); color: var(--ink);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s ease;
}
.pcard:hover { transform: translateY(-6px); border-color: rgba(8, 20, 97, .2); box-shadow: 0 30px 50px -30px rgba(8, 20, 97, .35); } /* taste-skill-ignore: card lift */
.pcard:active { transform: translateY(-2px); }
.pcard__name { margin-top: auto; padding-top: 40px; font: 400 36px/1.02 var(--display); letter-spacing: -0.015em; }
.pcard__line { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.pcard__more { margin-top: 22px; font-size: 14px; font-weight: 700; color: var(--ink); }
.pcard__more::after { content: " →"; display: inline-block; transition: transform .4s var(--ease); }
.pcard:hover .pcard__more::after { transform: translateX(5px); }

/* The 3D icon: a raised tile with a thick edge, tilted in space, its symbol floating above it */
.ico { --rx: 16deg; --ry: -20deg; display: block; width: 108px; height: 108px; perspective: 520px; }
.ico__tile {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 32px;
  background: linear-gradient(150deg, var(--gold-hi) 0%, var(--gold) 52%, #D9A206 100%);
  color: var(--navy-deep);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -10px 18px rgba(150, 100, 0, .3), 0 9px 0 var(--gold-deep), 0 30px 34px -16px rgba(120, 80, 0, .55);
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .8s var(--ease);
}
.ico__tile svg { position: absolute; left: 12%; top: 18%; width: 76%; height: auto; transform: translateZ(30px); filter: drop-shadow(0 5px 3px rgba(5, 13, 69, .28)); }
.ico--navy .ico__tile {
  background: linear-gradient(150deg, #22379F 0%, var(--navy-2) 50%, var(--navy) 100%); color: var(--gold);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), inset 0 -10px 18px rgba(0, 0, 0, .3), 0 9px 0 var(--navy-deep), 0 30px 34px -16px rgba(5, 13, 69, .6);
}
.ico--navy .ico__tile svg { filter: drop-shadow(0 5px 3px rgba(0, 0, 0, .45)); }
.pcard:hover .ico { --rx: 4deg; --ry: 6deg; }

.pillar-modal {
  width: min(580px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 28px;
  background: var(--card); color: var(--ink); box-shadow: 0 40px 90px -20px rgba(5, 13, 69, .55); /* taste-skill-ignore: dialog overlay */
}
.pillar-modal[open] { max-height: 88vh; overflow: auto; animation: pop .5s var(--ease); }
.pillar-modal::backdrop { background: rgba(8, 20, 97, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pillar-modal form { padding: 40px; }
.pillar-modal h3 { font: 400 44px/1 var(--display); letter-spacing: -0.02em; }
.pm-about { margin-top: 14px; }
.pm-sub { margin-top: 26px; font-size: var(--s-small); color: var(--ink-2); font-weight: 600; }
.pm-list li { margin-top: 8px; padding: 14px 18px; background: var(--paper); border-radius: 14px; }
.pm-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* How it works: numbered steps beside the live demo */
.how { margin-top: var(--gap); padding: 0 var(--m); display: grid; grid-template-columns: 6fr 6fr; gap: 48px clamp(32px, 5vw, 96px); align-items: start; }
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps__n {
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 20px;
  font: 400 34px/1 var(--display); color: var(--navy-deep);
  background: linear-gradient(150deg, var(--gold-hi), var(--gold) 60%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 5px 0 var(--gold-deep), 0 16px 20px -10px rgba(120, 80, 0, .5);
  transform: rotate(-4deg);
}
.steps li:nth-child(even) .steps__n { transform: rotate(4deg); }
.steps__h { font: 400 clamp(34px, 3.4vw, 54px)/1 var(--display); letter-spacing: -0.02em; }
.steps p { margin-top: 12px; max-width: 40ch; color: var(--ink-2); }

.demo {
  position: sticky; top: 100px; padding: clamp(28px, 3vw, 44px); border-radius: 32px;
  background: var(--navy); color: var(--on-navy);
}
.demo__h { font: 400 40px/1 var(--display); color: var(--gold); }
.demo__q { margin-top: 18px; font: italic 400 28px/1.25 var(--display); }
.demo__play { margin-top: 32px; }
.demo__row { border: 0; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 76px repeat(5, 1fr); gap: 8px; align-items: center; }
.demo__row legend { float: left; width: 76px; font-size: var(--s-small); font-weight: 600; color: var(--on-navy-2); }
.demo__row label { position: relative; cursor: pointer; }
.demo__row input { position: absolute; opacity: 0; }
.demo__row span {
  display: block; height: 46px; border-radius: 16px; font-size: 0;
  background: linear-gradient(180deg, #1A2A93, var(--navy-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 5px 0 var(--navy-deep);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s ease;
}
.demo__row label:hover span { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 7px 0 var(--navy-deep); }
.demo__row input:checked + span { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 0 var(--gold-deep); }
.demo__row input:focus-visible + span { outline: 3px solid var(--on-navy); outline-offset: 3px; }
.demo__ends { display: grid; grid-template-columns: 76px 1fr 1fr 1fr; margin-top: 12px; font-size: 12px; color: var(--on-navy-2); }
.demo__ends span:first-child { grid-column: 2; }
.demo__ends span:nth-child(2) { text-align: center; }
.demo__ends span:last-child { text-align: right; }
.demo__out { display: flex; align-items: baseline; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(244, 243, 239, .14); font-size: var(--s-body); }
.demo__out b { font: 400 64px/1 var(--display); color: var(--gold); }
.demo__out b.pop { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: translateY(-6px) scale(1.08); } }
.demo__rule { margin-top: 20px; font-size: var(--s-small); color: var(--on-navy-2); }

/* Report: a navy room, the pages stacked and tilted on its table */
.report {
  margin: var(--gap) 12px 0; padding: clamp(56px, 7vw, 112px) clamp(20px, 4vw, 64px); border-radius: 40px;
  background: var(--navy); color: var(--on-navy);
  display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; overflow: hidden;
}
.report h2 { color: var(--on-navy); }
.report__names { display: flex; flex-direction: column; align-items: flex-start; margin-top: 40px; }
.report__names button {
  display: inline-flex; align-items: center; gap: 14px;
  border: 0; background: none; padding: 8px 0; cursor: pointer; text-align: left;
  font: 400 clamp(30px, 3vw, 46px)/1.05 var(--display); color: rgba(185, 192, 234, .55);
  transition: color .3s ease, transform .5s var(--ease);
}
.report__names button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; transform: scale(0); transition: transform .4s var(--ease), background-color .3s ease; }
.report__names button:hover { color: var(--on-navy-2); transform: translateX(6px); }
.report__names button[aria-selected="true"] { color: var(--on-navy); }
.report__names button[aria-selected="true"]::before { transform: scale(1); background: var(--gold); box-shadow: 0 0 0 6px rgba(237, 181, 12, .2); }
.report__note { margin-top: 40px; max-width: 34ch; color: var(--on-navy-2); font-size: var(--s-small); }
.report__stage { display: grid; justify-items: center; perspective: 1400px; padding: 24px 0; }
.sheet {
  grid-area: 1 / 1; width: min(560px, 100%); padding: 36px 40px 40px;
  background: var(--card); color: var(--ink); border-radius: 10px; font-size: 16px; line-height: 1.5;
  box-shadow: 14px 14px 0 -2px #D9D6CC, 28px 28px 0 -4px #BEBAAE, 0 50px 80px -30px rgba(0, 0, 0, .6); /* taste-skill-ignore: a stack of report pages */
  transform: rotateY(-9deg) rotateX(5deg) rotateZ(-1deg); transform-origin: 50% 60%;
  opacity: 0; transition: opacity .5s ease, transform 1s var(--ease);
}
.report__stage:hover .sheet { transform: rotateY(-3deg) rotateX(2deg); }
.sheet.on { opacity: 1; }
.sheet[hidden] { display: block; visibility: hidden; }
.sheet__top { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.sheet__top span:last-child { margin-left: auto; }
.sheet__top img { border-radius: 6px; }
.sheet__big { font: 400 128px/.9 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.sheet__big small { font-size: .3em; letter-spacing: 0; color: var(--ink-2); }
.sheet__band { margin: 10px 0 14px; font: 700 20px/1.2 var(--text); color: var(--saffron-deep); }
.sheet__table { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: 15px; }
.sheet__table th, .sheet__table td { text-align: left; padding: 10px 0; border-top: 1px solid var(--line); }
.sheet__table th { font-weight: 600; color: var(--ink-2); width: 52%; }
.sheet__lead { font: 400 26px/1.25 var(--display); }
.bars li { display: grid; grid-template-columns: 160px 1fr 44px; gap: 12px; align-items: center; padding: 9px 0; font-size: 15px; }
.bars b { text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: 12px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--navy); border-radius: 6px; }
.bars li:nth-child(2) .meter i { background: var(--gold); }
.sheet .bars + p { margin-top: 20px; }
.gaps li { padding: 14px 0; border-top: 1px solid var(--line); }
.gaps b { font-size: 14px; color: var(--saffron-deep); }
.gaps p { font: 400 22px/1.3 var(--display); margin-top: 4px; }
.talk { margin-top: 18px; }
.talk li { margin-top: 12px; padding: 18px 20px; background: var(--paper); border-radius: 14px; font-size: 17px; }

/* Pricing: three plans; the middle one is lifted on gold */
.pricing { margin-top: var(--gap); padding: 0 var(--m); }
.pricing__head { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 64px; align-items: end; margin-bottom: 72px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 40px 36px 36px; border-radius: 32px; }
.plan--1 { background: var(--card); border: 1px solid var(--line); }
.plan--2 { background: linear-gradient(170deg, var(--gold-hi), var(--gold) 55%); color: var(--navy-deep); transform: translateY(-20px); box-shadow: 0 10px 0 var(--gold-deep), 0 40px 60px -30px rgba(120, 80, 0, .6); } /* taste-skill-ignore: the lifted plan */
.plan--3 { background: var(--navy); color: var(--on-navy); }
.plan h3 { font: 600 16px/1 var(--text); letter-spacing: .02em; }
.plan__price { font: 400 80px/1 var(--display); letter-spacing: -0.03em; margin: 22px 0 26px; }
.plan__price small { font: 500 var(--s-small)/1 var(--text); letter-spacing: 0; opacity: .75; }
.plan li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line); font-size: 17px; }
.plan--3 li { border-top-color: rgba(244, 243, 239, .14); }
.plan--2 li { border-top-color: rgba(5, 13, 69, .14); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.plan--2 li::before { background: var(--navy-deep); }
.plan__cta { margin-top: auto; align-self: stretch; }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* "Launch offer" badge: home page price cards and the pay screen */
.offer-badge { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; font: 700 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: var(--navy); color: var(--gold-hi); white-space: nowrap; }
.offer-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-hi); }
.plan--2 .offer-badge { background: var(--navy-deep); }
.plan ul { margin-bottom: 40px; }

/* Testimonials */
.stories { margin-top: var(--gap); padding: 0 var(--m); }
.stories { display: grid; grid-template-columns: 4fr 8fr; gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.stories__head { position: sticky; top: 110px; }
.stories h2 { max-width: 9ch; }
.story { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 26px 26px 22px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }
.story blockquote { margin: 0; font: 400 21px/1.3 var(--display); }
.story figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: var(--s-small); }
.story figcaption b { font-weight: 700; }
.story figcaption span { color: var(--ink-2); }
.story--lead { padding: 0 0 64px; background: none; border: 0; border-radius: 0; display: grid; grid-template-columns: 2fr 10fr; gap: 24px; }
.story--lead blockquote { grid-column: 2; max-width: 26ch; font: italic 400 clamp(36px, 4.4vw, 72px)/1.08 var(--display); letter-spacing: -0.02em; text-indent: -.42em; }
.story--lead blockquote::before { content: "“"; color: var(--gold); }
.story--lead figcaption { grid-column: 2; font-size: var(--s-body); }
.stories__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stories__note { margin-top: 20px; color: var(--ink-2); font-size: 13px; }

/* About us */
.about { margin-top: var(--gap); padding: 0 var(--m); display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(32px, 5vw, 96px); align-items: start; }
.about__lead { margin-top: 24px; max-width: 18ch; font: italic 400 clamp(28px, 2.6vw, 40px)/1.15 var(--display); color: var(--ink-2); }
.about__body > p { max-width: 62ch; font-size: clamp(18px, 1.3vw, 20px); }
.about__body > p + p { margin-top: 20px; }
.about__values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.about__values li { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; background: var(--navy); color: var(--on-navy); }
.about__values b { font: 400 24px/1.1 var(--display); color: var(--gold); }
.about__values span { font-size: 15px; color: var(--on-navy-2); }

/* FAQ: the question list opens one at a time */
.faq { margin-top: var(--gap); padding: 0 var(--m); display: grid; grid-template-columns: 5fr 7fr; gap: 48px clamp(32px, 5vw, 96px); align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__head p { margin-top: 24px; color: var(--ink-2); }
.faq__head a { color: var(--ink); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font: 400 clamp(26px, 2.2vw, 34px)/1.1 var(--display); }
.qa i {
  flex: none; position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(180deg, #fff, var(--card)); box-shadow: inset 0 1px 0 #fff, 0 4px 0 #D3D0C6, 0 10px 16px -8px rgba(8, 20, 97, .3);
  transition: transform .5s var(--ease), background .3s ease, box-shadow .3s ease;
}
.qa i::before, .qa i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.5px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.qa i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa summary:hover i { transform: translateY(-2px); }
.qa[open] i { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 0 var(--gold-deep), 0 10px 16px -8px rgba(120, 80, 0, .4); transform: rotate(45deg); }
.qa p { max-width: 60ch; padding: 0 64px 30px 0; }
.qa p a { color: var(--ink); }
.qa[open] p { animation: fade .6s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }

/* CTA: the whole panel is the button */
.cta {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; gap: 24px 40px; align-items: end;
  margin: var(--gap) 12px 0; padding: clamp(36px, 5vw, 72px); min-height: 60svh; border-radius: 40px; overflow: hidden;
  background: radial-gradient(90% 120% at 85% 100%, var(--navy-3), var(--navy) 55%, var(--navy-deep)); color: var(--on-navy); text-decoration: none;
}
.cta__word { grid-column: 1; grid-row: 1 / 3; align-self: end; font: italic 400 clamp(120px, 22vw, 380px)/.8 var(--display); letter-spacing: -0.04em; color: var(--on-navy); transition: transform 1s var(--ease); }
.cta__note { grid-column: 2; grid-row: 1; align-self: start; max-width: 26ch; font-size: var(--s-body); color: var(--on-navy-2); text-align: right; }
.cta__knob {
  grid-column: 2; grid-row: 2; justify-self: end; width: clamp(110px, 12vw, 168px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  color: var(--navy-deep); background: radial-gradient(circle at 38% 30%, var(--saffron-hi), var(--saffron) 55%, #E85800);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -10px 18px rgba(150, 50, 0, .35), 0 10px 0 var(--saffron-deep), 0 30px 40px -12px rgba(0, 0, 0, .55);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cta__knob svg { width: 38%; transition: transform .5s var(--ease); }
.cta:hover .cta__knob { transform: translateY(-4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -10px 18px rgba(150, 50, 0, .35), 0 14px 0 var(--saffron-deep), 0 40px 50px -14px rgba(0, 0, 0, .55); }
.cta:hover .cta__knob svg { transform: translate(4px, -4px); }
.cta:active .cta__knob { transform: translateY(8px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .25), 0 2px 0 var(--saffron-deep), 0 8px 12px -6px rgba(0, 0, 0, .5); transition-duration: .08s; }
.cta:hover .cta__word { transform: translateX(12px); }
.cta:focus-visible { outline: 4px solid var(--saffron); outline-offset: 4px; }

/* Footer */
.foot { position: relative; overflow: hidden; padding: var(--gap) var(--m) 24px; }
.foot__top { display: grid; grid-template-columns: 2fr 6fr 4fr; gap: 32px clamp(24px, 4vw, 64px); align-items: start; }
.foot__chart { width: 100%; max-width: 180px; height: auto; aspect-ratio: 1; }
.foot h2 { max-width: 10ch; margin-bottom: 40px; }
.foot__contact h3 { font: 400 32px/1 var(--display); margin-bottom: 16px; }
.foot__links { font-size: 17px; font-weight: 500; }
.foot__links li { display: flex; justify-content: space-between; gap: 16px; }
.foot__links li span { color: var(--ink-2); }
.foot__legal a { text-decoration: none; }
.foot__legal a:hover { text-decoration: underline; }
.foot__links li { padding: 10px 0; border-top: 1px solid var(--line); }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Sized to the full width by site.js; the vw size is the no-script fallback */
.foot__name { margin-top: 80px; font: 400 12vw/1.15 var(--brand); color: var(--navy); white-space: nowrap; text-align: center; }
.foot__name span { display: inline-block; }
.foot__legal { display: flex; justify-content: space-between; gap: 24px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* Motion: calm entrances, a floating logo and slowly turning rings */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
  .js .rv.in { opacity: 1; transform: none; }
  .stage__float::before { content: none; }
  .hero__chart { animation: float 8s var(--calm) infinite; }
  .stage__rings i:nth-child(1) { animation: turn 90s linear infinite; }
  .stage__rings i:nth-child(2) { animation: breathe 9s var(--calm) infinite; }
  .stage__rings i:nth-child(3) { animation: breathe 9s var(--calm) 4.5s infinite; }
  .ico { animation: bob 6s var(--calm) infinite; animation-delay: var(--bob, 0s); }
  .pgrid li:nth-child(2) .ico { --bob: -1.5s; } .pgrid li:nth-child(3) .ico { --bob: -3s; }
  .pgrid li:nth-child(4) .ico { --bob: -4.5s; } .pgrid li:nth-child(5) .ico { --bob: -2.2s; } .pgrid li:nth-child(6) .ico { --bob: -3.7s; }
  @keyframes float { 50% { transform: translateY(-12px); } }
  @keyframes turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
  @keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.06); opacity: .5; } }
  @keyframes bob { 50% { transform: translateY(-6px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ico__tile, .sheet, .stage__float { transition: none; }
}

/* Opening: the frame and lines of the logo draw themselves, then the logo's own centre opens out from the middle.
   Both layers are cut from the logo artwork, so the last frame is exactly the logo. */
.hero__chart .chart__art { position: relative; display: block; }
.chart { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .chart { display: block; }
  .js .hero__chart .chart__art { clip-path: circle(0% at 50% 49.5%); }
  .js .chart .d { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  .js .hero__chart.go .chart .d { animation: draw 1.4s cubic-bezier(.45, 0, .25, 1) forwards; }
  .js .hero__chart.go .chart .d2 { animation-delay: .3s; }
  .js .hero__chart.go .chart .d3 { animation-delay: .6s; animation-duration: 1.1s; }
  .js .hero__chart.go .chart__art { animation: iris 1.9s cubic-bezier(.55, 0, .25, 1) 1.15s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes iris { to { clip-path: circle(71% at 50% 49.5%); } }
}

/* Tablet */
@media (max-width: 1080px) {
  .stories { grid-template-columns: 1fr; }
  .stories__head { position: static; }
  .stories h2 { max-width: none; }
  .about { grid-template-columns: 1fr; }
  .stage { min-height: 0; padding-top: 64px; padding-bottom: 64px; }
  .compare__head, .pillars__head, .pricing__head { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: 1fr; }
  .demo { position: relative; top: 0; }
  .report { grid-template-columns: 1fr; }
  .report__names { flex-direction: row; flex-wrap: wrap; gap: 4px 28px; }
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .foot__top { grid-template-columns: 1fr 2fr; }
  .foot__contact { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 680px) {
  :root { --gap: 104px; }
  .bar { top: 8px; margin-top: 8px; gap: 8px 12px; padding: 8px 8px 8px 10px; flex-wrap: wrap; border-radius: 26px; }
  .bar__links { order: 3; width: 100%; justify-content: center; gap: 20px; margin: -6px 0 -4px; padding: 0; font-size: 14px; }
  .bar__links a { padding: 10px 8px; }
  .bar__start { margin-left: auto; }
  .bar__brand { gap: 8px; }
  .bar__brand img { width: 34px; height: 34px; }
  .bar__word { font-size: 19px; }
  .bar__start { padding: 0 14px; min-height: 40px; font-size: 14px; }
  .hero { padding: 12px 8px 0; }
  .hero__line { font-size: 22px; }
  .hero__btn { width: 100%; min-width: 0; }
  .stage { min-height: calc(100svh - 96px); padding: 40px 20px 36px; border-radius: 28px; }
  .stage__float { width: 90%; }
  .stage__rings i:nth-child(1) { width: 340px; height: 340px; }
  .stage__rings i:nth-child(2) { width: 460px; height: 460px; }
  .hero__name { font-size: 11vw; margin-top: 22px; }
    .compare__cols { grid-template-columns: 1fr; margin-top: 48px; }
  .col { padding: 32px 22px 36px; }
  .pillars__head { margin-bottom: 40px; }
  .pgrid { grid-template-columns: 1fr; gap: 12px; }
  .pcard { min-height: 0; padding: 26px 24px 24px; }
  .pcard__name { padding-top: 32px; font-size: 32px; }
  .ico { width: 88px; height: 88px; }
  .ico__tile { border-radius: 26px; }
  .steps li { grid-template-columns: 56px 1fr; gap: 16px; }
  .steps__n { width: 48px; height: 48px; font-size: 28px; border-radius: 16px; }
  .steps__h { font-size: 34px; }
  .demo { padding: 24px 18px; border-radius: 24px; }
  .demo__q { font-size: 24px; }
  .demo__row, .demo__ends { grid-template-columns: 64px repeat(5, 1fr); gap: 6px; }
  .demo__ends { grid-template-columns: 64px 1fr 1fr 1fr; }
  .demo__row legend { width: 64px; }
  .demo__row span { height: 40px; border-radius: 12px; }
  .report { margin-left: 8px; margin-right: 8px; border-radius: 28px; padding: 56px 16px; }
  .report__names { gap: 0 20px; }
  .report__names button { font-size: 26px; white-space: nowrap; }
  .report__names button::before { display: none; }
  .sheet { padding: 24px 20px 28px; transform: none; box-shadow: 8px 8px 0 -2px #D9D6CC, 0 30px 50px -20px rgba(0, 0, 0, .6); }
  .report__stage:hover .sheet { transform: none; }
  .sheet__big { font-size: 96px; }
  .bars li { grid-template-columns: 1fr 70px 36px; font-size: 14px; }
  .pricing__head { margin-bottom: 40px; }
  .plans { grid-template-columns: 1fr; gap: 20px; }
  .plan { padding: 32px 24px 28px; }
  .plan--2 { transform: none; }
  .plan__price { font-size: 64px; }
  .story--lead { grid-template-columns: 1fr; padding-bottom: 40px; }
  .story--lead blockquote, .story--lead figcaption { grid-column: 1; }
  .story--lead blockquote { font-size: 36px; text-indent: 0; }
  .stories__row { grid-template-columns: 1fr; gap: 12px; }
  .about__values { grid-template-columns: 1fr; margin-top: 28px; }
  .story { padding: 26px 22px; }
  .qa p { padding-right: 0; }
  .cta { grid-template-columns: 1fr auto; margin-left: 8px; margin-right: 8px; min-height: 0; padding: 32px 22px; border-radius: 28px; }
  .cta__note { grid-column: 1 / -1; grid-row: 1; text-align: left; font-size: 17px; }
  .cta__word { grid-row: 2; font-size: 30vw; }
  .cta__knob { grid-row: 2; width: 92px; }
  .foot__top { grid-template-columns: 1fr; }
  .foot__chart { max-width: 120px; }
  .foot .btn { width: 100%; }
  .foot__legal { flex-direction: column; gap: 4px; }
}

/* Privacy notice: a small card at the bottom of the screen until the visitor answers */
.pnote {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; margin: 0 auto; max-width: 720px;
  display: flex; align-items: center; gap: 16px 24px; padding: 16px 16px 16px 22px; border-radius: 22px;
  background: var(--navy); color: var(--on-navy); font-size: 15px; line-height: 1.5;
  box-shadow: 0 24px 50px -20px rgba(5, 13, 69, .6); /* taste-skill-ignore: floating notice */
}
.pnote p { flex: 1; }
.pnote a { color: var(--gold); }
.pnote__actions { display: flex; gap: 10px; flex: none; }
.pnote .btn--quiet { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .pnote { animation: pop .6s var(--ease) both .8s; } }
@media (max-width: 680px) {
  .pnote { left: 8px; right: 8px; bottom: 8px; flex-direction: column; align-items: stretch; padding: 16px; }
  .pnote__actions .btn { flex: 1; }
}
@media (max-width: 360px) {
  .bar__brand img { width: 30px; height: 30px; }
  .bar__word { font-size: 16px; }
  .bar__start { padding: 0 12px; font-size: 13px; }
}
