/* ── In detail: segmented tabs, one even panel ────────────────── */
.details .wrap { max-width: 1120px; }
.details .eyebrow, .details #det-h { text-align: center; }
.tabs-wrap { display: flex; justify-content: center; margin-top: 32px; }
.tabs-row { position: relative; display: flex; gap: 4px; max-width: 100%; overflow-x: auto; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--sage) 20%, transparent); scrollbar-width: none; }
.tabs-row::-webkit-scrollbar { display: none; }
.tabs-row button { position: relative; z-index: 1; flex: none; min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--ink2); font: 600 .9375rem Inter, system-ui, sans-serif; cursor: pointer; transition: color .25s, transform .5s var(--spring); }
.tabs-row button:active { transform: scale(.96); transition-duration: .1s; }
.tabs-row button[aria-selected="true"] { color: var(--marble); }
.tabs-row button:focus-visible { outline-offset: -3px; }
.tabs-row .thumb { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform .55s var(--spring), width .55s var(--spring); }
.details .cards.tabbed { display: block; margin-top: 24px; }
.details .tabbed article { display: none; grid-column: auto; padding: clamp(22px, 3.4vw, 44px); border-radius: 28px; background: color-mix(in srgb, var(--sage) 8%, transparent); }
.details .tabbed article.on { display: grid; gap: clamp(24px, 3vw, 48px); align-content: start; min-height: 420px; animation: panel .5s var(--spring); }
@media (min-width: 900px) { .details .tabbed article.on { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); } }
.tabbed header h3 { margin: 10px 0 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; }
.tabbed header p:last-child { margin: 14px 0 0; color: var(--ink2); line-height: 1.65; }
.art-body { min-width: 0; display: grid; gap: 14px; align-content: start; }
.art-body > * { margin: 0 !important; }
.details .tabbed ul.rows { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border: 0; padding: 0; }
.details .tabbed ul.rows > li, .details .tabbed .platforms > .card, .details .tabbed .duo > .card { margin: 0; padding: 20px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--surface, var(--marble)); }
.details .tabbed ul.rows > li h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.details .tabbed ul.rows > li p { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--ink2); }
.details .tabbed .platforms { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.details .tabbed .phrases { margin-top: 12px !important; width: auto; }
.details .tabbed .phrases ol { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.details .tabbed ul.langs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(130px, 45%), 1fr)); padding: 0; }
.details .tabbed ul.langs > li { margin: 0; }
.details .tabbed article.on :is(ul.rows > li, .platforms > .card, .phrases li, .duo > .card, ul.langs > li, .art-body > .note) { animation: tile .6s var(--spring) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes panel { from { opacity: 0; transform: translateY(14px) scale(.99); } }
@keyframes tile { from { opacity: 0; transform: translateY(16px); } }

/* ── The privacy scene ────────────────────────────────────────── */
.sec.cleared { padding-top: 0; }
.clear { height: 330svh; }
.clear-pin { position: sticky; top: 68px; height: calc(100svh - 68px); overflow: clip; display: grid; place-items: center; isolation: isolate; }
.clear-text { position: relative; z-index: 1; text-align: center; padding: 0 20px; max-width: 900px; }
.clear-text .statement { margin: 18px auto 0; font-size: clamp(2.3rem, min(7vw, 10svh), 5.4rem); line-height: 1.08; letter-spacing: -.03em; }
.clear-text .statement span { display: block; }
.clear-text .statement i { display: inline-block; font-style: normal; will-change: transform, opacity; }
.clear-text .statement span:first-child i { color: var(--sandstone); }
.gate-line { position: absolute; z-index: -1; height: 94%; max-width: 96vw; left: 50%; top: 3%; translate: -50% 0; fill: none; stroke: var(--sandstone); stroke-width: 1.4; opacity: .6; }
.gate-line path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.gate-line .in { opacity: .55; }
.halo { position: absolute; z-index: -2; width: min(90vw, 760px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, #D9B66A 34%, transparent), transparent 72%); opacity: 0; }
.noise { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.junk { position: absolute; left: calc(50% + var(--x) * 1%); top: calc(50% + var(--y) * 1%); translate: -50% -50%; will-change: transform, opacity; }
.junk > div { display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(330px, 76vw); padding: 14px 14px 14px 12px; border-radius: 16px; background: #FFFFFF; color: #1C1D22; box-shadow: 0 18px 40px -14px rgb(0 0 0 / .35), 0 0 0 1px rgb(0 0 0 / .06); font: 600 .9375rem/1.3 Inter, system-ui, sans-serif; rotate: var(--r); animation: nag 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); }
.junk b { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #E5484D; color: #fff; font-size: .75rem; }
.junk:nth-child(even) b { background: #3B6FE0; font-size: 1.05rem; }
.junk:nth-child(3n) b { background: #E8890C; }
.junk em { flex: none; padding: 8px 12px; border-radius: 999px; background: #1C1D22; color: #fff; font-style: normal; font-size: .75rem; }
@keyframes nag { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 599px) { .junk em { display: none; } .junk > div { font-size: .8125rem; max-width: 58vw; padding: 10px; } .junk b { width: 30px; height: 30px; } .junk { left: calc(50% + var(--x) * .62%); top: calc(50% + var(--y) * 1.12%); } }
.scroll-hint { position: absolute; z-index: 3; bottom: 22px; left: 50%; translate: -50% 0; margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--marble); font-size: .875rem; font-weight: 600; white-space: nowrap; }

/* ── The four vows underneath ─────────────────────────────────── */
.grid4.vows { gap: 16px; }
.grid4.vows > li { position: relative; overflow: hidden; padding: 28px 24px; border: 1px solid var(--hairline); border-radius: 24px; background: color-mix(in srgb, var(--sage) 8%, transparent); transition: transform .6s var(--spring), border-color .3s, opacity .6s var(--ease); }
.grid4.vows > li::before { content: ""; position: absolute; inset: 0; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, #D9B66A 26%, transparent), transparent 70%); opacity: 0; transition: opacity .35s; pointer-events: none; }
@media (hover: hover) { .grid4.vows > li:hover { transform: translateY(-6px); border-color: var(--sandstone); } .grid4.vows > li:hover::before { opacity: 1; } }
.grid4.vows > li > * { position: relative; }
.mark { width: 52px; height: 52px; margin-bottom: 18px; padding: 12px; box-sizing: content-box; width: 30px; height: 30px; border-radius: 16px; background: var(--ink); fill: none; stroke: var(--marble); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mark .slash { stroke: #E5866A; stroke-width: 2.2; }
@media (prefers-reduced-motion: no-preference) {
  .vows .mark * { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .vows.drawn .mark * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.45, .05, .25, 1); }
  .vows.drawn li:nth-child(2) .mark * { transition-delay: .15s; }
  .vows.drawn li:nth-child(3) .mark * { transition-delay: .3s; }
  .vows.drawn li:nth-child(4) .mark * { transition-delay: .45s; }
  .vows.drawn .mark .slash { transition-delay: 1s; }
  .vows.drawn .mark .drop { animation: drop .9s var(--spring) .9s both; }
  .vows.drawn .mark .ring { animation: ripple 2.4s ease-out 1.6s infinite; transform-origin: 12px 21px; }
  .vows.drawn li:nth-child(4) .mark { animation: fly 4.5s ease-in-out 1.6s infinite; }
}
@keyframes drop { from { transform: translateY(-5px); } }
@keyframes ripple { 0% { transform: scale(.5); opacity: 1; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes fly { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (prefers-reduced-motion: reduce) { .tabbed article, .tabbed article * { animation: none !important; } .tabs-row .thumb { transition: none; } }

.details .tabbed header .eyebrow { text-align: start; }
@media (min-width: 640px) { .details .tabbed ul.rows { grid-template-columns: 1fr 1fr; } .details .tabbed ul.rows > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.compass { display: grid; place-items: center; padding: 24px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--surface, var(--marble)); }
.compass svg { width: min(250px, 100%); fill: none; stroke: var(--ink3); stroke-width: 1.2; }
.compass .ticks { stroke-width: 9; stroke-dasharray: 1 12; opacity: .45; }
.compass .needle { transform-origin: 110px 110px; }
.compass .line { stroke-dasharray: 3 5; }
.compass .dot { fill: #3F6B3A; stroke: none; }
.compass .cube { stroke: #FFF8EA; stroke-width: 1.5; stroke-linejoin: round; }
.compass .hub { fill: var(--ink); stroke: none; }
.tabbed article.on .needle { animation: find 5.5s cubic-bezier(.3, .8, .2, 1) infinite; }
@keyframes find { 0% { transform: rotate(-110deg); } 35% { transform: rotate(14deg); } 48% { transform: rotate(-5deg); } 60%, 88% { transform: rotate(0); } 100% { transform: rotate(-110deg); } }
.details .cards.tabbed article ul.rows { gap: 14px; }

/* The promise itself: night falls, then the words arrive. */
.nightfall { position: absolute; inset: 0; z-index: -3; background: radial-gradient(120% 90% at 50% 45%, #3C4A2C 0%, #232B19 55%, #161B0F 100%); clip-path: circle(0 at 50% 50%); }
.clear-text { max-width: 1100px; }
.clear-text .statement { font-weight: 700; line-height: 1; }
.clear-text .statement .l { display: block; }
.clear-text .statement .no { font-size: clamp(3rem, min(11vw, 13svh), 8.2rem); letter-spacing: -.045em; }
.clear-text .statement .soft { margin-top: .5em; font-size: clamp(1.6rem, min(4.6vw, 6svh), 3.4rem); font-weight: 500; letter-spacing: -.02em; }
.clear-text .statement .own { position: relative; width: max-content; max-width: 100%; margin: .04em auto 0; padding-bottom: .22em; font-size: clamp(3.4rem, min(13vw, 15svh), 9.6rem); letter-spacing: -.045em; }
.clear-text .statement i { transform-origin: 50% 80%; padding: .04em .02em .12em; margin-bottom: -.12em; }
.clear-text .statement .l i { color: inherit; }
.clear-text .eyebrow { transition: color .4s; }
.lit .clear-text .eyebrow { color: #D9B66A; }
.lit .clear-text .statement { color: #FFF3D8; }
.lit .clear-text .statement .soft { color: #CBD1B0; }
.lit .clear-text .statement .own i, .lit .clear-text .statement .no:first-child i { background: linear-gradient(100deg, #B8873B 0%, #E7C67C 30%, #FFF6DD 45%, #E7C67C 60%, #B8873B 100%); background-size: 250% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; }
.done .clear-text .statement .own i, .done .clear-text .statement .no:first-child i { animation: shine 3.4s linear infinite; }
@keyframes shine { from { background-position: 125% 0; } to { background-position: -125% 0; } }
.swash { position: absolute; left: 4%; bottom: 0; width: 92%; height: .24em; overflow: visible; fill: none; stroke: #D9B66A; stroke-width: 4; stroke-linecap: round; }
.swash path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lit .gate-line { stroke: #D9B66A; opacity: .5; }
.lit .halo { background: radial-gradient(closest-side, rgb(217 182 106 / .3), transparent 72%); }
.lit .scroll-hint { background: #FFF3D8; color: #232B19; }
@media (max-width: 599px) { .clear-text .statement .no { font-size: clamp(2.6rem, 13.5vw, 4.4rem); } .clear-text .statement .own { font-size: clamp(2.9rem, 15.5vw, 5rem); } }
.clear-text .statement span.l.no { color: var(--ink); }
.lit .clear-text .statement span.l.no { color: #FFF3D8; }

/* ── Our amanah ───────────────────────────────────────────────── */
.amanah { text-align: center; background: radial-gradient(110% 80% at 50% 0%, #3C4A2C 0%, #232B19 60%, #1A2013 100%); color: #FFF3D8; }
.amanah .wrap { max-width: 1040px; }
.amanah .trust { margin: 0 0 8px; font-size: clamp(4.5rem, 13vw, 9rem); line-height: 1.5; background: linear-gradient(100deg, #B8873B 0%, #E7C67C 35%, #FFF6DD 50%, #E7C67C 65%, #B8873B 100%); background-size: 250% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; }
.amanah .eyebrow { color: #D9B66A; }
.amanah h2 { max-width: 20ch; margin: 14px auto 0; color: #FFF3D8; text-wrap: balance; }
.amanah .lead { max-width: 52ch; margin: 22px auto 0; color: #CBD1B0; }
.pledges { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 16px; text-align: start; }
@media (min-width: 760px) { .pledges { grid-template-columns: repeat(3, 1fr); } }
.pledges li { padding: 26px 24px; border-radius: 24px; border: 1px solid rgb(217 182 106 / .32); background: rgb(255 243 216 / .05); }
.pledges h3 { margin: 0; font-size: 1.25rem; color: #FFF3D8; }
.pledges p { margin: 10px 0 0; color: #CBD1B0; line-height: 1.6; }
.amanah .seal { margin: 40px 0 0; font: 400 clamp(1.8rem, 4vw, 2.6rem)/1.3 "Snell Roundhand", "Segoe Script", cursive; color: #E7C67C; }
@media (prefers-reduced-motion: no-preference) { .amanah .trust.in { animation: shine 4.5s linear infinite; } }

/* The promise follows the hero: a shorter scroll, then its four vows, then the features. */
.clear { height: 270svh; }
.sec.cleared { padding-bottom: clamp(56px, 8vw, 104px); }
.sec.cleared .wrap { padding-top: clamp(40px, 6vw, 72px); }
.sec.cleared .vows { margin-top: 0; }
.sec.cleared .more { display: table; margin-inline: auto; margin-top: 28px; }
@media (max-width: 599px) { .grid4.vows { grid-template-columns: 1fr 1fr; gap: 12px; } .grid4.vows > li { padding: 18px 14px; border-radius: 20px; } .grid4.vows h3 { font-size: 1rem; } .grid4.vows p { font-size: .875rem; line-height: 1.5; } .grid4.vows .mark { width: 24px; height: 24px; padding: 10px; margin-bottom: 12px; border-radius: 13px; } }

/* ── The points under each pinned feature ─────────────────────── */
.show .chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: -6px 0 18px; padding: 0; }
.show .chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hairline); background: color-mix(in srgb, var(--sage) 12%, transparent); color: var(--ink2); font-size: .8125rem; line-height: 1.35; }
.show ol > li.on .chips li { animation: tile .55s var(--spring) both; }
.show ol > li.on .chips li:nth-child(2) { animation-delay: .05s; } .show ol > li.on .chips li:nth-child(3) { animation-delay: .1s; } .show ol > li.on .chips li:nth-child(4) { animation-delay: .15s; } .show ol > li.on .chips li:nth-child(5) { animation-delay: .2s; }
@media (max-width: 899px), (max-height: 719px) { .show .chips { display: none; } }

/* ── The close: the app's own mark, a crescent rising before dawn ─ */
.closing .wrap { max-width: 1120px; }
.dawn { position: relative; overflow: hidden; text-align: center; padding: clamp(44px, 7vw, 88px) 20px clamp(40px, 6vw, 72px); border-radius: clamp(28px, 4vw, 44px); background: linear-gradient(180deg, #161C12 0%, #2B3520 42%, #6B6B3C 74%, #D8B56A 100%); color: #FFF3D8; isolation: isolate; }
.dawn::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -46%; width: 130%; aspect-ratio: 2.2; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 240 196 / .75), transparent); }
.moonrise { width: clamp(110px, 16vw, 168px); overflow: visible; }
.moonrise .moon circle { fill: #FFEFC9; }
.moonrise path { fill: none; stroke: #D9C98E; stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 1; }
.moonrise .h2 { opacity: .6; }
.dawn .ar { margin: 4px 0 0; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.5; color: #E7C67C; }
.dawn h2 { max-width: 18ch; margin: 6px auto 0; color: #FFF3D8; text-wrap: balance; }
.dawn .lead { max-width: 46ch; margin: 18px auto 0; color: #EDEBD2; }
.dawn .actions { margin-top: 28px; display: flex; justify-content: center; }
.dawn .btn-primary { background: #FFF3D8; color: #232B19; max-width: 100%; }
.dawn .note { max-width: 46ch; margin: 26px auto 0; padding: 10px 18px; border-radius: 18px; background: rgb(22 28 18 / .78); color: #F3EFD8; }
@media (prefers-reduced-motion: no-preference) {
  .js .dawn .moon { transform: translateY(46px); opacity: 0; transition: transform 1.6s var(--spring) .15s, opacity 1s var(--ease) .15s; }
  .js .dawn .moonrise path { stroke-dashoffset: 1; transition: stroke-dashoffset 1s cubic-bezier(.45, .05, .25, 1) .5s; }
  .js .dawn .moonrise .h2 { transition-delay: .75s; }
  .js .dawn.in .moon { transform: none; opacity: 1; }
  .js .dawn.in .moonrise path { stroke-dashoffset: 0; }
}
.dawn .moonrise { display: block; margin: 0 auto; }

/* ── Share the barakah: only the arrow leaves its tray ────────── */
.barakah { margin-top: 18px; display: grid; justify-items: center; gap: 10px; }
.share-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid rgb(255 243 216 / .55); background: rgb(22 28 18 / .72); color: #FFF3D8; font: 600 1rem Inter, system-ui, sans-serif; cursor: pointer; touch-action: manipulation; transition: transform .45s var(--spring), background-color .2s; }
.share-btn:active { transform: scale(.96); transition-duration: .1s; }
.share-btn svg { width: 21px; height: 21px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.share-btn .arrow { transition: transform .5s var(--spring); will-change: transform; }
@media (hover: hover) { .share-btn:hover { background: rgb(22 28 18 / .9); } .share-btn:hover .arrow { transform: translateY(-2px); } }
.share-btn:active .arrow, .share-btn:focus-visible .arrow { transform: translateY(-3.5px); transition-duration: .14s; }
.share-btn:focus-visible { outline: 2px solid #FFF3D8; outline-offset: 3px; }
.shared { margin: 0; min-height: 1.4em; font-size: .9375rem; color: #232B19; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .share-btn:active { transform: none; opacity: .8; } .share-btn .arrow { transform: none !important; } }

/* The hero ends cleanly, straight into the promise. */
.hero { padding-bottom: 24px; }

/* The founder: a small round portrait, the name, two quiet pills. */
.story .portrait { display: block; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 48px auto 0; padding: 4px; border: 1px solid rgba(184,135,59,.55); }
.story .portrait + .sign { margin-top: 16px; font-size: clamp(2rem, 4vw, 2.4rem); }
.story .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 0; }
.story .go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px 0 22px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); font-size: .9375rem; font-weight: 500; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .35s cubic-bezier(.22,1,.36,1), background-color .2s, border-color .2s; }
.story .go svg { width: 12px; height: 12px; opacity: .55; transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .2s; }
@media (hover: hover) { .story .go:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); border-color: color-mix(in srgb, var(--ink) 28%, transparent); } .story .go:hover svg { transform: translate(2px, -2px); opacity: 1; } }
.story .go:active { transform: scale(.96); transition-duration: .1s; }
@media (prefers-reduced-motion: reduce) { .story .go, .story .go svg { transition: background-color .2s, opacity .2s; } .story .go:active { transform: none; opacity: .7; } .story .go:hover svg { transform: none; } }
@media (max-width: 360px) { .story .links { gap: 8px; } .story .go { padding: 0 14px; gap: 6px; font-size: .875rem; } }

/* The privacy scene starts below the first screen, however tall the window. */
@media (min-width: 900px) { .sec.cleared { margin-top: max(40px, calc(100svh - 830px)); } }
