/* ============ NicheFox — brand styles ============ */
:root {
  --navy: #2E2420;
  --navy-2: #3B2F27;
  --mint: #FFA04D;
  --mint-dark: #E8832E;
  --coral: #FF6B5E;
  --cream: #FDF6EC;
  --white: #ffffff;
  --ink: #33261D;
  --ink-soft: #63513F;
  --line: #EADFCE;
  --line-dark: rgba(255,235,210,.14);
  --radius: 18px;
  --shadow: 0 10px 40px rgba(46, 36, 32, .12);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); line-height: 1.15; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
.sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 640px; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--coral); margin-bottom: 16px; }
.dark .eyebrow { color: var(--mint); }
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 52px; }
.section-head .sub { margin: 14px auto 0; }

/* Dark sections */
.dark { background: var(--navy); color: #F4E9DB; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .sub { color: #C9B8A5; }

/* Buttons */
.btn { display: inline-block; padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: .95rem; font-family: var(--font-head); transition: .2s; cursor: pointer; border: none; }
.btn-mint { background: var(--mint); color: var(--navy); box-shadow: 0 0 0 0 rgba(255,160,77,.4); }
.btn-mint:hover { background: var(--mint-dark); box-shadow: 0 0 24px 0 rgba(255,160,77,.5); transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid var(--line); }
.dark .btn-ghost { border-color: var(--line-dark); color: #fff; }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint-dark); }
.dark .btn-ghost:hover { color: var(--mint); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(46,36,32,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-dark); color: #F4E9DB; }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; color: #fff; }
.logo .fox { font-size: 1.4rem; }
.logo em { font-style: normal; color: var(--mint); }
.nav-links { display: flex; align-items: center; gap: 26px; flex: 1; font-size: .92rem; font-weight: 500; color: #C9B8A5; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.dropdown { position: relative; }
.dropdown > span { cursor: pointer; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: -12px; background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 200px; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: #C9B8A5; }
.dropdown-menu a:hover { background: rgba(255,160,77,.1); color: var(--mint); }
@media (max-width: 880px) { .nav-links { display: none; } }

/* Hero */
.hero { padding: 104px 0 88px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 55% at 50% -5%, rgba(255,160,77,.2), transparent 65%), radial-gradient(ellipse 40% 35% at 85% 20%, rgba(255,107,94,.1), transparent 70%); pointer-events: none; }
.hero > .container { position: relative; }
.hero .sub { margin: 22px auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: .85rem; color: #C9B8A5; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,160,77,.12); border: 1px solid rgba(255,160,77,.4); color: var(--mint); border-radius: 999px; padding: 6px 16px; font-size: .85rem; font-weight: 600; margin-bottom: 24px; }

/* Cards & grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3, .card h4 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.card .emoji { font-size: 1.9rem; margin-bottom: 14px; display: block; }
.dark .card { background: var(--navy-2); border-color: var(--line-dark); }
.dark .card p { color: #C9B8A5; }

/* Checklist */
.checks { list-style: none; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--ink-soft); }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--mint-dark); font-weight: 800; }

/* Pricing */
.billing-toggle { display: flex; justify-content: center; gap: 8px; margin: 34px 0; flex-wrap: wrap; }
.billing-toggle button { padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--line-dark); background: transparent; color: #C9B8A5; font-family: var(--font-head); font-weight: 700; font-size: .88rem; cursor: pointer; transition: .2s; }
.light-toggle button { border-color: var(--line); color: var(--ink-soft); }
.billing-toggle button.active { background: var(--mint); color: var(--navy); border-color: var(--mint); }
.billing-toggle .badge { font-size: .72rem; margin-left: 6px; opacity: .8; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.plan { display: flex; flex-direction: column; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 32px 28px; position: relative; }
.plan.popular { border: 2px solid var(--mint); box-shadow: 0 12px 44px rgba(255,160,77,.22); }
.plan .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--mint); color: var(--navy); font-family: var(--font-head); font-size: .75rem; font-weight: 700; padding: 4px 16px; border-radius: 999px; white-space: nowrap; }
.plan h3 { display: flex; align-items: center; gap: 8px; }
.plan .desc { font-size: .89rem; color: var(--ink-soft); margin: 8px 0 20px; min-height: 2.8em; }
.price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; letter-spacing: -.02em; }
.price span { font-size: 1rem; font-weight: 500; color: var(--ink-soft); font-family: var(--font-body); }
.credits { font-size: .9rem; color: var(--coral); font-weight: 700; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 18px 0; flex: 1; }
.plan li { padding-left: 26px; position: relative; margin-bottom: 10px; font-size: .89rem; color: var(--ink-soft); }
.plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--mint-dark); font-weight: 800; }
.plan .btn { width: 100%; text-align: center; }
.plan .replies { margin-top: 18px; text-align: center; font-size: .82rem; color: var(--ink-soft); }
.plan .replies strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare th, .compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { font-family: var(--font-head); font-weight: 700; background: var(--cream); }
.compare th small { font-family: var(--font-body); font-weight: 500; color: var(--ink-soft); }
.compare td.yes::before { content: "\2713"; color: var(--mint-dark); font-weight: 800; }
.compare td.no::before { content: "\2014"; color: #cdc7b8; }
.compare td.part { color: var(--ink-soft); font-size: .85rem; }
.compare .group td { background: var(--cream); font-family: var(--font-head); font-weight: 700; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 18px 24px; margin-bottom: 12px; background: var(--white); }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--coral); flex-shrink: 0; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); font-size: .95rem; }
/* FAQ always sits on a white card — keep text dark even inside .dark sections */
.dark .faq summary { color: var(--ink); }
.dark .faq details p { color: var(--ink-soft); }

/* Quotes */
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote-card blockquote { font-size: .97rem; margin-bottom: 18px; }
.quote-person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--mint); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; flex-shrink: 0; }
.quote-person .who strong { display: block; font-size: .92rem; }
.quote-person .who span { font-size: .82rem; color: var(--ink-soft); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; color: var(--mint-dark); letter-spacing: -.02em; }
.dark .stat strong { color: var(--mint); }
.stat span { font-size: .88rem; color: var(--ink-soft); }
.dark .stat span { color: #C9B8A5; }

/* Familiarity score meter */
.meter { background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 26px; }
.meter .row { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; color: #C9B8A5; }
.meter .bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 18px; }
.meter .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--coral), var(--mint)); }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; text-align: center; border-radius: 26px; padding: 76px 32px; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(255,160,77,.22), transparent 65%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band .sub { color: #C9B8A5; margin: 16px auto 32px; }

/* Footer */
footer { background: var(--navy); color: #C9B8A5; padding: 64px 0 32px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: .85rem; margin-bottom: 14px; color: #fff; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--mint); }
.footer-brand p { max-width: 280px; margin-top: 12px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }

/* Misc */
.pill-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); }
.pill-row span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; background: var(--white); }
.dark .pill-row span { border-color: var(--line-dark); background: rgba(255,255,255,.04); color: #C9B8A5; }
.step-num { font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--coral); letter-spacing: .1em; margin-bottom: 8px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .vs { grid-template-columns: 1fr; } }
.metric { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.metric strong { font-family: var(--font-head); font-size: 1.05rem; }
.bad .metric strong { color: var(--coral); }
.good .metric strong { color: var(--mint-dark); }
.streak { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,107,94,.1); border: 1px solid rgba(255,107,94,.3); color: var(--coral); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: .85rem; }

/* Fox mascot */
.fox-svg { width: 28px; height: 28px; flex-shrink: 0; }
.fox-hero { width: 84px; height: 84px; margin: 0 auto 20px; }
.fox-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.avatar .fox-icon { width: 24px; height: 24px; }
.footer-bottom .fox-icon { width: .9em; height: .9em; }
.coming-soon { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,107,94,.14); color: var(--coral); border-radius: 999px; padding: 2px 10px; margin-left: 8px; vertical-align: middle; }
.platform-card { text-align: center; }
.platform-card .emoji { font-size: 2rem; }
/* App preview */
.app-preview { background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: 20px; padding: 20px; display: grid; grid-template-columns: 180px 1fr; gap: 18px; text-align: left; }
@media (max-width: 720px) { .app-preview { grid-template-columns: 1fr; } }
.app-side { border-right: 1px solid var(--line-dark); padding-right: 16px; font-size: .88rem; }
@media (max-width: 720px) { .app-side { border-right: none; border-bottom: 1px solid var(--line-dark); padding: 0 0 12px; } }
.app-side a { display: flex; gap: 8px; padding: 8px 10px; border-radius: 8px; color: #C9B8A5; }
.app-side a.on { background: rgba(255,160,77,.14); color: var(--mint); font-weight: 700; }
.app-main h4 { color: #fff; margin-bottom: 12px; }
.app-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; font-size: .88rem; color: #E8DCCB; }
.app-item .btn { padding: 6px 14px; font-size: .8rem; }

/* Wizard / auth pages */
.wizard { max-width: 620px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.wizard label { display: block; font-weight: 600; margin: 18px 0 8px; font-size: .95rem; color: var(--ink); }
.wizard h3 { color: var(--ink); }
.wizard textarea, .wizard input[type=text], .wizard input[type=email], .wizard input[type=password] { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--font-body); font-size: .95rem; background: var(--cream); color: var(--ink); }
.wizard textarea:focus, .wizard input:focus { outline: none; border-color: var(--mint); }
.wizard textarea { min-height: 96px; resize: vertical; }
.wizard .btn { width: 100%; margin-top: 22px; }
.wizard .hint { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }
/* wizard is a white card — keep its sub/hint text dark even in .dark sections */
.wizard .sub { color: var(--ink-soft); }
.dark .wizard .sub { color: var(--ink-soft); }
.wstep { display: none; }
.wstep.on { display: block; }
.wdots { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; }
.wdots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.wdots span.on { background: var(--mint); }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer; font-size: .9rem; font-weight: 600; background: var(--white); transition: .15s; }
.chip.on { border-color: var(--mint); background: rgba(255,160,77,.12); color: var(--mint-dark); }
.radar-result { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; background: var(--cream); }
.radar-result strong { display: block; font-size: .95rem; }
.radar-result span { font-size: .85rem; color: var(--ink-soft); }
.spinner { text-align: center; padding: 30px 0; font-weight: 600; color: var(--ink-soft); }
.spinner .fox-spin { display: inline-block; animation: bob 1s ease-in-out infinite; }
.spinner .fox-spin .fox-icon { width: 42px; height: 42px; vertical-align: middle; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.error-msg { color: var(--coral); font-size: .85rem; margin-top: 8px; display: none; }
.video-frame { aspect-ratio: 16/9; background: var(--navy-2); border-radius: 20px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: #C9B8A5; border: 1px solid var(--line-dark); }
.video-frame .play { width: 74px; height: 74px; border-radius: 50%; background: var(--mint); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; cursor: pointer; transition: .2s; }
.video-frame .play:hover { transform: scale(1.08); }

/* ===== Auth card (login / signup) ===== */
.auth-card { max-width: 440px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.auth-tab { position: relative; z-index: 2; border: none; background: transparent; padding: 11px 0; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ink-soft); cursor: pointer; transition: color .2s; }
.auth-tab.on { color: var(--navy); }
.auth-slider { position: absolute; z-index: 1; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px); background: var(--mint); border-radius: 9px; transition: transform .25s cubic-bezier(.22,1,.36,1); box-shadow: 0 2px 8px rgba(255,160,77,.4); }
.auth-panel { display: none; animation: authfade .35s ease; }
.auth-panel.on { display: block; }
@keyframes authfade { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.auth-panel label { display: block; font-weight: 600; margin: 16px 0 7px; font-size: .92rem; }
.auth-panel input[type=text], .auth-panel input[type=email], .auth-panel input[type=password] { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--font-body); font-size: .95rem; background: var(--cream); color: var(--ink); }
.auth-panel input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(255,160,77,.15); }
.auth-submit { width: 100%; margin-top: 22px; }

/* password field + show/hide toggle */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: none; background: transparent; cursor: pointer; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; line-height: 1; opacity: .6; transition: opacity .15s, background .15s; }
.pw-toggle:hover { opacity: 1; background: rgba(255,160,77,.12); }
.pw-toggle .eye-off { display: none; }
.pw-toggle.on .eye-open { display: none; }
.pw-toggle.on .eye-off { display: inline; }

/* login row: remember + forgot */
.auth-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: .85rem; }
.check-inline { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; font-weight: 500 !important; color: var(--ink-soft); cursor: pointer; }
.check-inline input { width: auto !important; accent-color: var(--mint-dark); }
.check-inline.terms { margin-top: 16px !important; font-size: .85rem; line-height: 1.5; align-items: flex-start; }
.auth-link { color: var(--mint-dark); font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

/* password strength meter */
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.pw-meter i { height: 5px; border-radius: 999px; background: var(--line); transition: background .25s; }
.pw-meter.s1 i:nth-child(-n+1), .pw-meter.s2 i:nth-child(-n+2), .pw-meter.s3 i:nth-child(-n+3), .pw-meter.s4 i:nth-child(-n+4) { background: var(--coral); }
.pw-meter.s2 i:nth-child(-n+2) { background: #E8A13E; }
.pw-meter.s3 i:nth-child(-n+3) { background: #E8A13E; }
.pw-meter.s4 i:nth-child(-n+4) { background: #2DBd7E; }
.pw-hint { font-size: .8rem; color: var(--ink-soft); margin-top: 8px; }
.auth-foot { text-align: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ===== App dashboard ===== */
.app-wrap { padding: 48px 0 84px; min-height: 60vh; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.app-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.app-head .sub { margin-top: 4px; }
.tier-badge { background: var(--navy); color: var(--mint); font-family: var(--font-head); font-weight: 700; font-size: .85rem; padding: 8px 18px; border-radius: 999px; white-space: nowrap; }
.head-badges { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* standalone warmth bar (People card) */
.app-card .bar { height: 9px; border-radius: 999px; background: rgba(51,38,29,.08); overflow: hidden; }
.app-card .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--coral), var(--mint)); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.app-billing { grid-column: 1 / -1; }
@media (max-width: 860px) { .app-grid { grid-template-columns: 1fr; } }
.app-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.app-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.app-card-head h2 { font-size: 1.25rem; }
.app-card > label { display: block; font-weight: 600; margin: 16px 0 7px; font-size: .9rem; color: var(--ink); }
.app-card input[type=text], .app-card select, .app-card textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--font-body); font-size: .95rem; background: var(--cream); color: var(--ink); }
.app-card input:focus, .app-card select:focus, .app-card textarea:focus { outline: none; border-color: var(--mint); }
.app-card textarea { min-height: 80px; resize: vertical; }
.app-card .btn { margin-top: 16px; }
.muted { color: var(--ink-soft); font-size: .9rem; }
.btn-sm { padding: 7px 13px; font-size: .8rem; margin-top: 0 !important; }

/* routine */
.routine-list { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.routine-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--cream); }
.routine-item.done { opacity: .55; }
.routine-item.skip { opacity: .4; }
.ri-top { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; flex-wrap: wrap; }
.ri-kind { font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: var(--mint-dark); }
.ri-title { font-weight: 600; font-size: .92rem; }
.ri-draft { font-size: .88rem; color: var(--ink-soft); background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 6px 0 10px; white-space: pre-wrap; }
.ri-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ri-status { color: var(--mint-dark); font-weight: 700; font-size: .82rem; }
.ri-del { margin-left: auto; padding: 5px 11px !important; }
.empty-state { text-align: center; padding: 24px 10px; color: var(--ink-soft); }
.empty-state .btn { margin-top: 12px; }
.add-draft { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.add-draft summary { cursor: pointer; font-weight: 700; font-family: var(--font-head); font-size: .9rem; color: var(--mint-dark); }

/* radar in app */
.radar-block { margin-top: 16px; }
.radar-block h4 { font-size: .95rem; margin-bottom: 8px; }
.radar-block strong { display: block; margin-top: 8px; font-size: .82rem; color: var(--ink); }
.radar-ul { margin: 4px 0 0 18px; }
.radar-ul li { font-size: .88rem; color: var(--ink-soft); margin-bottom: 4px; }
.saved-maps { margin-top: 20px; }
.saved-h { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 10px; }
.saved-chip { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: 7px 14px; margin: 0 8px 8px 0; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.saved-chip span { color: var(--ink-soft); font-weight: 500; font-size: .78rem; }
.saved-chip:hover { border-color: var(--mint); }
.upgrade-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.upgrade-row .btn { margin-top: 0; }
.app-card .spinner .fox-spin .fox-icon { width: 38px; height: 38px; }

/* ===== Legal pages (terms / privacy) ===== */
.legal { max-width: 760px; }
.legal p { color: var(--ink-soft); margin-bottom: 16px; font-size: .97rem; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 12px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--mint-dark); font-weight: 600; }
.footer-legal a { color: #C9B8A5; }
.footer-legal a:hover { color: var(--mint); }
