/* astitvaapp.com: Astitva's own look on the web. Warm paper, clay and sage, the app's
   Newsreader for headings and Figtree for everything else, the same tokens as DESIGN.md.
   The legal site (tools/legal-site) shares these tokens, fonts, header and footer. */

@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Figtree-Regular.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Figtree-Medium.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Figtree-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Figtree-Bold.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Newsreader-Regular.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Newsreader-Medium.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/Newsreader-Italic.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #FBF8F3; --sand: #F4EDE4; --deep: #EDE5DA; --ink: #241F1C; --soft: #5E534C;
  --clay: #B26B4F; --clay-deep: #9A5A40; --sage: #6B8578; --sage-deep: #3F5C50; --sage-wash: #DCE6E0;
  --amber: #D9A05B; --mist: #C9BFB4; --line: #E4D9CC;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 30px 60px -30px rgba(74, 46, 31, .35), 0 8px 20px -12px rgba(74, 46, 31, .18);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 600 12.5px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--clay-deep); margin: 0 0 14px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h2 { font-family: var(--display); font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.01em; }
.lead { color: var(--soft); font-size: 17.5px; max-width: 46ch; margin: 18px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 14px 24px; font: 600 15px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #3A322D; }
:focus-visible { outline: 2.5px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { border-radius: 999px; }
.site-foot :focus-visible { outline-color: var(--paper); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header (shared with the legal pages) ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 243, .86); -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.logo span { font-family: var(--display); font-size: 26px; letter-spacing: -.01em; }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.links a { text-decoration: none; color: var(--soft); }
.links a:hover { color: var(--ink); }
.nav .btn { padding: 11px 20px; font-size: 14.5px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(60% 70% at 88% 8%, rgba(178,107,79,.22), transparent 70%),
  radial-gradient(50% 60% at 6% 96%, rgba(107,133,120,.18), transparent 70%), var(--paper); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: 660px; padding-top: 30px; padding-bottom: 70px; }
.hero h1 { font-family: var(--display); font-size: clamp(44px, 6vw, 74px); line-height: 1.02; letter-spacing: -.02em; position: relative; }
.u { position: relative; white-space: nowrap; }
.u svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.u path { stroke: var(--clay); stroke-width: 4; fill: none; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 0; }
.rays { position: absolute; right: -4px; top: -46px; width: 74px; }
.rays path { stroke: var(--clay); stroke-width: 3; stroke-linecap: round; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.soon { font-size: 14.5px; color: var(--soft); display: inline-flex; align-items: center; gap: 8px; }
.soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 5px rgba(107,133,120,.18); }
.trust { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--soft); }
.trust b { color: var(--ink); font-weight: 600; }

.visual { position: relative; height: 560px; }
.halo { position: absolute; width: 420px; height: 420px; right: 40px; top: 60px; border-radius: 50%; background: rgba(178,107,79,.13); }
.phone { position: absolute; right: 125px; top: -4px; width: 280px; padding: 9px; border-radius: 50px;
  background: linear-gradient(145deg, #5A524C 0%, #221D1A 18%, #141110 50%, #2A2420 82%, #4B433D 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22), inset 0 0 0 6px #0B0908,
    0 60px 90px -45px rgba(64, 40, 27, .55), 0 22px 40px -22px rgba(64, 40, 27, .35); }
.phone .screen { position: relative; border-radius: 41px; overflow: hidden; aspect-ratio: 600 / 1304; background: #EFE6DE; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .cam { position: absolute; z-index: 2; top: 1.45%; left: 50%; width: 3.4%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 38% 35%, #4A5672 0%, #11141B 45%, #040506 70%); box-shadow: 0 0 0 1.5px #0A0909; }
.phone .glare { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 26%, rgba(255,255,255,0) 40%); }
.phone .key { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2B2521, #5E5650); }
.phone .key.l1 { left: -3px; top: 21%; height: 6%; }
.phone .key.l2 { left: -3px; top: 29%; height: 9%; }
.phone .key.r { right: -3px; top: 26%; height: 12%; background: linear-gradient(270deg, #2B2521, #5E5650); }
.card { position: absolute; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; width: 300px; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); padding: 18px 20px; }
.card svg { grid-row: span 2; }
.card b { font-weight: 600; font-size: 16px; }
.card p { margin: 0; grid-column: 2; font-size: 13.5px; color: var(--soft); line-height: 1.45; }
.card.reads { left: -24px; top: 150px; }
.card.book { right: -10px; top: 380px; }

/* ---------- facts strip ---------- */
.facts { background: var(--clay-deep); color: var(--paper); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 38px; padding-bottom: 38px; }
.fact { display: flex; align-items: center; gap: 16px; padding: 0 22px; border-left: 1px solid rgba(251,248,243,.22); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact .lbl { font-size: 14.5px; line-height: 1.35; opacity: .92; }

/* ---------- sections ---------- */
section.block { padding-top: 120px; padding-bottom: 120px; overflow-x: clip; }
.sand { background: var(--sand); }
.head-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: end; }
.head-row .lead { margin-top: 0; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 60px; }
.feature .plate { width: 92px; height: 92px; border-radius: 28px; background: var(--sand); display: grid; place-items: center; margin-bottom: 20px; }
.feature .plate img { width: 70px; height: 70px; object-fit: contain; }
.feature h3 { font-family: var(--body); font-weight: 600; font-size: 18.5px; line-height: 1.3; }
.feature p { color: var(--soft); font-size: 15.5px; margin: 8px 0 0; }

.journey { position: relative; height: 560px; margin-top: 30px; }
.journey svg.path { position: absolute; inset: 0; width: 100%; height: 100%; }
.journey .path path { fill: none; stroke: var(--clay); stroke-width: 2.5; stroke-dasharray: 4 10; stroke-linecap: round; }
.pin { position: absolute; width: 150px; text-align: center; transform: translate(-50%, -50%); }
.pin .ring { width: 118px; height: 118px; margin: 0 auto; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow); padding: 7px; position: relative; }
.pin .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 30%; background: #fff; }
.pin .ring::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; background: var(--paper); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.pin span { display: inline-block; margin-top: 18px; font-size: 13.5px; line-height: 1.3; font-weight: 600; background: var(--paper); border-radius: 999px; padding: 6px 12px; box-shadow: 0 6px 14px -8px rgba(74,46,31,.3); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--soft); }
.ticks svg { width: 26px; height: 26px; }
.searchbar { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; background: var(--paper); border-radius: 22px; padding: 8px; box-shadow: var(--shadow); max-width: 520px; }
.searchbar div { padding: 10px 14px; border-radius: 16px; }
.searchbar small { display: block; font-size: 12px; color: var(--soft); }
.searchbar strong { font-weight: 600; font-size: 15px; }
.searchbar span.go { width: 54px; height: 54px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; align-self: center; }
.room { position: relative; display: grid; place-items: center; aspect-ratio: 1.2; }
.room .blob { position: absolute; inset: 8% 9% 8% 11%; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; background: rgba(107,133,120,.2); }
.room img { position: relative; width: 100%; }

.cluster { position: relative; height: 470px; }
.cluster .ava { position: absolute; width: 92px; height: 92px; border-radius: 50%; padding: 5px; background: var(--paper); box-shadow: var(--shadow); }
.cluster .ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cluster .ava.big { width: 150px; height: 150px; left: calc(50% - 75px); top: calc(50% - 75px); }
.bubble { position: absolute; background: var(--paper); border-radius: 18px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 24px -14px rgba(74,46,31,.45); white-space: nowrap; }
.bubble.clay { background: var(--clay-deep); color: var(--paper); }
.bubble.sage { background: var(--sage-deep); color: var(--paper); }
.cluster .orbit { position: absolute; left: 50%; top: 50%; border: 1.5px dashed var(--mist); border-radius: 50%; transform: translate(-50%, -50%); }
.cluster .orbit.o1 { width: 400px; height: 400px; }
.cluster .orbit.o2 { width: 240px; height: 240px; }
.bubble.b1 { left: 24%; top: 0; }
.bubble.b2 { right: -4%; top: 40%; }
.bubble.b3 { left: -4%; top: 44%; }
.bubble.b4 { left: 26%; bottom: -2%; }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.promise { background: var(--sand); border-radius: 22px; padding: 26px; }
.promise svg { width: 34px; height: 34px; }
.promise h3 { font-family: var(--body); font-weight: 600; font-size: 18px; margin-top: 14px; }
.promise p { margin: 6px 0 0; color: var(--soft); font-size: 15px; }
.helpline { margin-top: 26px; background: var(--sage-deep); color: var(--paper); border-radius: 22px; padding: 22px 26px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.helpline b { font-family: var(--display); font-weight: 400; font-size: 28px; }

.price-card { margin: 56px auto 0; max-width: 760px; background: var(--paper); border-radius: 30px; box-shadow: var(--shadow); padding: 44px; display: grid; grid-template-columns: auto 1fr; gap: 10px 46px; align-items: center; text-align: left; }
.price-card .amount { font-family: var(--display); font-size: 92px; line-height: .9; letter-spacing: -.02em; }
.price-card .amount small { display: block; font-family: var(--body); font-size: 15px; color: var(--soft); letter-spacing: 0; margin-top: 10px; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.price-card li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15.5px; }
.price-card .note { grid-column: 1 / -1; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--soft); }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.mail { display: inline-flex; margin-top: 26px; align-items: center; gap: 12px; background: var(--sand); border-radius: 18px; padding: 14px 18px; font-weight: 600; text-decoration: none; }
.mail:hover { background: var(--deep); }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; font-weight: 600; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23241F1C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--soft); max-width: 60ch; }
details a { color: var(--clay-deep); text-underline-offset: 3px; }

.get { background: var(--sand); }
.get .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-top: 60px; padding-bottom: 60px; }
.get h2 { font-size: clamp(28px, 3.2vw, 40px); }
.get .lead { margin-top: 10px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge.gp { height: 70px; width: auto; margin: -9px -6px; }
.badge.as { height: 47px; width: auto; }

/* ---------- footer (shared with the legal pages) ---------- */
.site-foot { background: var(--clay-deep); color: var(--paper); }
.site-foot .wrap { padding-top: 70px; padding-bottom: 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot h2 { margin: 0 0 14px; font: 600 13px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.foot a { text-decoration: none; opacity: .92; }
.foot a:hover { opacity: 1; text-decoration: underline; }
.foot .logo span { color: var(--paper); }
.foot p { margin: 16px 0 0; font-size: 15px; max-width: 34ch; }
a.velcro { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(251,248,243,.5); opacity: 1; }
a.velcro:hover { text-decoration-color: currentColor; }
.legal { margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(251,248,243,.22); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; opacity: .92; }
.legal a { text-decoration: none; }

/* ---------- motion: only with JavaScript, and only if the reader allows motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .u path { stroke-dashoffset: 320; transition: stroke-dashoffset 1.1s .55s cubic-bezier(.6,.1,.2,1); }
  .js .loaded .u path { stroke-dashoffset: 0; }
  .js .visual .phone { opacity: 0; translate: 0 70px; transition: opacity .9s .25s, translate 1.1s .25s cubic-bezier(.2,.8,.2,1); }
  .js .loaded .visual .phone { opacity: 1; translate: 0 0; }
  .float { animation: float 6s ease-in-out infinite; }
  .float.slow { animation-duration: 8s; animation-delay: -2s; }
  .float.late { animation-delay: -4s; }
  @keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
  .js .journey .path path { stroke-dashoffset: 1400; stroke-dasharray: 1400; transition: stroke-dashoffset 2.4s ease; }
  .js .journey.in .path path { stroke-dashoffset: 0; }
  .js .pin { opacity: 0; scale: .7; transition: opacity .5s, scale .6s cubic-bezier(.3,1.5,.5,1); transition-delay: calc(var(--i) * .18s + .3s); }
  .js .journey.in .pin { opacity: 1; scale: 1; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero .wrap, .split, .faq, .head-row { grid-template-columns: 1fr; }
  .hero .wrap { min-height: 0; padding-top: 20px; gap: 10px; }
  .visual { height: 540px; max-width: 460px; width: 100%; margin: 0 auto; }
  .facts .wrap { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .promises { grid-template-columns: 1fr 1fr; }
  .journey { height: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 8px; margin-top: 46px; }
  .journey svg.path { display: none; }
  .pin { position: static; transform: none; width: auto; }
  .pin .ring { width: 96px; height: 96px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .price-card { grid-template-columns: 1fr; }
  section.block { padding-top: 84px; padding-bottom: 84px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .visual { height: 490px; }
  .phone { width: 220px; right: 50%; margin-right: -110px; padding: 7px; border-radius: 40px; }
  .phone .screen { border-radius: 33px; }
  .halo { width: 300px; height: 300px; right: 10px; }
  .card.reads { left: -6px; top: 260px; width: 250px; transform: scale(.86); transform-origin: left top; }
  .card.book { right: -6px; top: 380px; width: 250px; transform: scale(.86); transform-origin: right top; }
  .features, .promises { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr 1fr; }
  .fact b { font-size: 38px; }
  .fact { padding: 0 14px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .rays { display: none; }
  .searchbar { grid-template-columns: 1fr auto; }
  .searchbar div:nth-child(2) { display: none; }
  .cluster { height: 380px; }
  .cluster .orbit.o1 { width: 300px; height: 300px; }
  .cluster .orbit.o2 { width: 180px; height: 180px; }
  .cluster .ava { width: 72px; height: 72px; padding: 4px; }
  .cluster .ava.big { width: 118px; height: 118px; left: calc(50% - 59px); top: calc(50% - 59px); }
  .bubble { font-size: 12.5px; padding: 8px 12px; }
  .bubble.b1 { left: 22%; }
  .bubble.b2 { right: 0; }
  .bubble.b3 { left: 0; }
  .bubble.b4 { left: 12%; }
  .price-card { padding: 30px 24px; }
  .price-card .amount { font-size: 72px; }
  .foot { grid-template-columns: 1fr; }
}
