/* TadFit pages — shared styles (landing, privacy, terms, support, account deletion) */
:root {
    --bg: #0a0a0d; --surface: #14141a; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
    --text: #f4f1ea; --text-2: #b3b2bd; --text-3: #77767f; --signal: #d6ff3f;
    --accent: #34d399; --accent-2: #d6ff3f;
    --ease: cubic-bezier(.22,1,.36,1);
    --font: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --serif: 'Instrument Serif', Georgia, serif;
    --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; min-height: 100svh;
    -webkit-font-smoothing: antialiased; position: relative; isolation: isolate; overflow-x: hidden;
    padding: max(1rem, env(safe-area-inset-top)) 1.1rem max(2rem, env(safe-area-inset-bottom));
}
body::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(640px 420px at 6% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%),
        radial-gradient(640px 440px at 100% 100%, rgba(139,92,246,.2), transparent 70%),
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 64px 64px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.12) 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.12) 100%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
svg.i { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--signal); color: #0a0a0d; }

.wrap { width: min(920px, 100%); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 62px; padding: 0 .75rem; border-radius: 18px; background: rgba(14,14,18,.66); border: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); position: sticky; top: 10px; z-index: 20; }
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 700; letter-spacing: .02em; }
.brand svg { width: 38px; height: 38px; }
.brand span small { color: var(--text-3); font-weight: 500; }
.app-chip { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; padding: .4rem .75rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }

.tabs { display: flex; gap: .4rem; overflow-x: auto; padding: 1.1rem 0 .3rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: .55rem .95rem; border-radius: 12px; font-size: .88rem; font-weight: 500; color: var(--text-2); border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: background .25s, color .25s, border-color .25s; }
.tab:hover { color: var(--text); background: rgba(255,255,255,.08); }
.tab.active { background: var(--text); color: #0a0a0d; border-color: transparent; font-weight: 650; }

.page-head { padding: clamp(2rem, 6vw, 3.6rem) 0 1.2rem; }
.kicker { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.kicker::before { content: ''; width: 26px; height: 1px; background: currentColor; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--signal); letter-spacing: -.01em; }
.meta { margin-top: 1rem; display: inline-flex; font-family: var(--mono); font-size: .78rem; color: var(--text-2); padding: .4rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }

.doc { padding: .5rem 0 1rem; }
.doc h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); letter-spacing: -.025em; font-weight: 700; margin: 2.4rem 0 .9rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.doc h2:first-child { border-top: 0; padding-top: 0; margin-top: 1rem; }
.doc h3 { font-size: 1.05rem; font-weight: 650; margin: 1.6rem 0 .6rem; color: var(--text); }
.doc p { color: var(--text-2); margin: .75rem 0; }
.doc strong { color: var(--text); font-weight: 650; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); transition: color .2s; }
.doc a:hover { color: var(--signal); }
.doc ul, .doc ol { margin: .75rem 0 .75rem 1.2rem; color: var(--text-2); }
.doc li { margin: .45rem 0; padding-left: .2rem; }
.doc li::marker { color: var(--accent); }
.doc ol > li > ul { margin-top: .4rem; }
.lead-h { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin: 1.6rem 0 .4rem; }
.ph { font-family: var(--mono); font-size: .82em; padding: .1em .45em; border-radius: 6px; background: rgba(251,191,36,.14); border: 1px dashed rgba(251,191,36,.6); color: #fcd34d; white-space: nowrap; }

.table-wrap { margin: 1rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(20,20,26,.7); }
table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .92rem; }
th { text-align: left; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: .8rem 1rem; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
td { padding: .8rem 1rem; color: var(--text-2); border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); }

.toc { margin: 1.4rem 0 .4rem; padding: 1.2rem 1.4rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.toc b { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.toc ol { list-style: none; margin: .7rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .15rem .8rem; counter-reset: t; }
.toc li { counter-increment: t; margin: 0; }
.toc a { display: block; padding: .35rem 0; color: var(--text-2); text-decoration: none; font-size: .94rem; transition: color .2s, padding .25s var(--ease); }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: .74rem; color: var(--accent); margin-right: .7rem; }
.toc a:hover { color: var(--text); padding-left: .3rem; }

.faq { margin: .6rem 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s; }
.faq[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 1.2rem 1.1rem; color: var(--text-2); }
.faq .a a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.notice { margin: 1.4rem 0; padding: 1rem 1.2rem; border-radius: 16px; background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.28); color: var(--text-2); font-size: .94rem; }
.notice strong { color: #fcd34d; }

/* landing */
.hero { padding: clamp(2.2rem, 7vw, 4.5rem) 0 1.4rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem; align-items: center; }
.hero-mark { width: min(100%, 280px); aspect-ratio: 1; margin-inline: auto; border-radius: 28%; display: grid; place-items: center; position: relative; background: linear-gradient(150deg, #0f1f1a, #0a0a0d); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--accent) 70%, transparent); animation: float 7s ease-in-out infinite; }
.hero-mark::before { content: ''; position: absolute; inset: 8%; border-radius: 26%; border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); }
.hero-mark b { font-size: clamp(3.2rem, 14vw, 5.4rem); letter-spacing: -.06em; background: linear-gradient(135deg, var(--accent), var(--signal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.slogan { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 4vw, 2.1rem); color: var(--signal); margin: .6rem 0 1rem; }
.intro { color: var(--text-2); font-size: 1.05rem; max-width: 34em; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .8rem; margin: 2rem 0; }
.feature { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.feature .n { font-family: var(--mono); font-size: .72rem; color: var(--accent); padding-top: .25rem; flex: none; }
.feature p { color: var(--text); font-size: .98rem; line-height: 1.5; }
.stores { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0; }
.store { display: inline-flex; align-items: center; gap: .8rem; padding: .75rem 1.2rem .75rem 1rem; border-radius: 16px; background: #000; border: 1px solid var(--line-2); transition: transform .35s var(--ease), border-color .3s; }
.store:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.4); }
.store svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store small { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.store strong { font-size: 1.05rem; font-weight: 600; }
.store.soon { opacity: .55; cursor: default; }
.store.soon:hover { transform: none; border-color: var(--line-2); }
.links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0; }
.links a { padding: .6rem 1rem; border-radius: 12px; font-size: .9rem; border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: background .25s, border-color .25s, transform .3s var(--ease); }
.links a:hover { background: rgba(255,255,255,.08); border-color: var(--line-2); transform: translateY(-2px); }
.disclaimer { margin-top: 1.6rem; color: var(--text-3); font-size: .9rem; font-style: italic; }

.back { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem; color: var(--text-2); font-size: .94rem; transition: color .2s; }
.back:hover { color: var(--text); }
footer { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem; color: var(--text-3); font-size: .84rem; }
footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
footer a:hover { color: var(--text); }

@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-mark { order: -1; width: min(70%, 220px); } .tab { font-size: .84rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } html { scroll-behavior: auto; } }
