/* ============================================================================
   Thot — home page
   A soft stage for the app: one accent, calm surfaces, and screenshots that
   carry the colour. No pixel effects, no cursor, no grain.
   ========================================================================== */

/* ---------- Hero --------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -10%;
  width: min(780px, 80vw);
  height: 620px;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}
.hero-copy .kicker { margin-bottom: 18px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.9vw, 3.65rem);
  line-height: 1.18;
  letter-spacing: 0.005em;
}
.hero h1 .hero-accent { color: var(--accent); }
.hero .lead {
  margin-top: 22px;
  max-width: 40ch;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}
.hero-trust .chip { background: transparent; }

.hero-devices {
  position: relative;
  min-height: 430px;
  padding: 0 34px 48px 0;
}
.hero-devices::before {
  content: "";
  position: absolute;
  inset: 12% 4% 6% 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-desktop {
  position: relative;
  width: 100%;
  transform: rotate(-1.2deg);
}
.hero-desktop img { aspect-ratio: 1440 / 900; object-fit: cover; }
.hero-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 33%;
  min-width: 150px;
  transform: rotate(1.6deg);
}
.hero-phone img { aspect-ratio: 480 / 880; object-fit: cover; }
.hero-sync {
  position: absolute;
  top: 18px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
}
.hero-sync .ico { width: 14px; height: 14px; color: var(--accent); }
.hero-sync small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 400;
}
.hero-tag {
  position: absolute;
  left: 6%;
  bottom: 14px;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: 0.74rem;
}
.hero-tag b { font-size: 0.82rem; }
.hero-tag span { color: var(--muted); }

/* ---------- What it does ------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.home-feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}
.home-feature h3 { font-size: 1.22rem; }
.home-feature p { color: var(--muted); font-size: 0.94rem; }
.home-feature .mini-list {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 2px 0 4px;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
}
.home-feature .mini-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-feature .mini-list .ico { width: 14px; height: 14px; color: var(--accent); }
.home-feature .text-link { margin-top: auto; }

.home-feature.highlight {
  border-color: var(--accent-line);
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 55%),
    var(--surface);
}
.home-feature.highlight .icon-badge {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ---------- Inside Thot -------------------------------------------------- */

.showcase {
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.showcase-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--elev);
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.showcase-tabs::-webkit-scrollbar { display: none; }
.showcase-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}
.showcase-tab:hover { color: var(--text); }
.showcase-tab[aria-selected="true"] {
  background: var(--text);
  color: var(--bg);
}
.showcase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: clamp(24px, 4vw, 40px) clamp(2px, 2vw, 16px) clamp(8px, 2vw, 14px);
}
.showcase-panel[hidden] { display: none; }
.showcase-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  margin-bottom: 12px;
}
.showcase-copy p { color: var(--muted); max-width: 46ch; }
.showcase-points {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}
.showcase-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.showcase-points .ico {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--money-in);
}
.showcase-phone {
  width: min(250px, 100%);
  justify-self: center;
}

/* ---------- Finance ------------------------------------------------------ */

.finance-section {
  position: relative;
  border-block: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.finance-section::before {
  content: "";
  position: absolute;
  inset: 10% auto auto -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.finance-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.finance-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  line-height: 1.3;
}
.finance-copy p { margin-top: 16px; color: var(--muted); }
.finance-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}
.finance-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.93rem;
}
.finance-list .ico { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }
.finance-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 26px 0 40px;
}
.finance-phone { width: min(280px, 78%); }
.finance-stat {
  position: absolute;
  top: 6%;
  left: 0;
  width: 190px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--elev);
  box-shadow: var(--shadow-soft);
}
.finance-stat .label {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.finance-stat .value {
  display: block;
  margin-top: 2px;
  font-size: 1.18rem;
  font-weight: 600;
}
.finance-stat .delta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}
.finance-budget {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 210px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--elev);
  box-shadow: var(--shadow-soft);
}
.finance-budget .top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
}
.finance-budget b { color: var(--text); }
.budget-track {
  height: 6px;
  margin-top: 9px;
  border-radius: var(--radius-pill);
  background: var(--active-bg);
  overflow: hidden;
}
.budget-fill {
  width: 41%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.mini-chart {
  width: 100%;
  height: auto;
  margin-top: 22px;
  color: var(--accent);
}
.mini-chart .grid-line { stroke: var(--border); stroke-width: 1; }
.mini-chart .bar { fill: var(--accent); }
.mini-chart .bar-muted { fill: var(--cat-1); }
.mini-chart .axis { fill: var(--muted); font-size: 8px; }

/* ---------- Sync --------------------------------------------------------- */

.sync-section {
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.sync-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.7fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 44px);
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.sync-device {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: clamp(22px, 4vw, 34px) 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  text-align: center;
}
.sync-device .icon-badge { width: 58px; height: 58px; }
.sync-device b { font-size: 0.98rem; }
.sync-device span { color: var(--muted); font-size: 0.78rem; }
.sync-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}
.sync-dashes {
  width: 100%;
  border-top: 1px dashed var(--accent-line);
}
.sync-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
}
.sync-lock .ico { width: 18px; height: 18px; }
.sync-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}
.sync-chips .chip { font-size: 0.66rem; padding: 3px 8px; }
.sync-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 28px auto 0;
}
.sync-point {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.sync-point .ico { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.sync-point b { display: block; font-size: 0.88rem; }
.sync-point span { color: var(--muted); font-size: 0.78rem; }

/* ---------- Privacy ------------------------------------------------------ */

.privacy-section { border-bottom: 1px solid var(--border); }
.privacy-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.privacy-lead h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  line-height: 1.3;
}
.privacy-lead p { color: var(--muted); }
.privacy-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.privacy-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.privacy-card .ico { width: 20px; height: 20px; color: var(--accent); }
.privacy-card b { display: block; margin-top: 12px; font-size: 0.9rem; }
.privacy-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.8rem; }
.privacy-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}
.vault-panel { padding: 0; overflow: hidden; }
.vault-panel .vault-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}
.vault-panel .vault-head .ico { width: 16px; height: 16px; color: var(--accent); }
.vault-panel .vault-tree {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.privacy-note {
  margin-top: 20px;
  max-width: 80ch;
}

/* ---------- Platforms ---------------------------------------------------- */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.platform-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition:
    transform var(--t-mid) var(--ease),
    border-color var(--t-mid) var(--ease),
    background var(--t-mid) var(--ease);
}
.platform-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--elev);
  text-decoration: none;
}
.platform-tile .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.platform-tile h3 { font-size: 1.02rem; }
.platform-tile p { color: var(--muted); font-size: 0.82rem; }
.platform-tile .state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.68rem;
}
.platform-tile .text-link { margin-top: auto; font-size: 0.8rem; }

/* ---------- Download panel ---------------------------------------------- */

.download-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at 10% 20%, var(--accent-soft), transparent 45%),
    var(--surface);
}
.download-panel .logo {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.download-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  line-height: 1.3;
}
.download-panel p { margin-top: 10px; color: var(--muted); }
.download-panel .lead { max-width: 58ch; }
.download-panel .note-honest { margin-top: 14px; font-size: 0.82rem; }

/* ---------- FAQ ---------------------------------------------------------- */

.faq-section { border-top: 1px solid var(--border); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }

/* ---------- Responsive --------------------------------------------------- */

@media (max-width: 1099px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .lead { max-width: 58ch; }
  .hero-devices { max-width: 720px; margin-inline: auto; width: 100%; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
}

@media (max-width: 899px) {
  .feature-grid { grid-template-columns: 1fr; }
  .showcase-panel { grid-template-columns: 1fr; }
  .showcase-copy { order: 2; }
  .showcase-phone { order: 1; width: min(230px, 72%); }
  .finance-grid { grid-template-columns: 1fr; }
  .finance-copy { order: 1; }
  .finance-visual { order: 2; max-width: 520px; margin-inline: auto; width: 100%; }
  .sync-diagram { grid-template-columns: 1fr; max-width: 400px; }
  .sync-link { flex-direction: row; }
  .sync-dashes { width: 40px; }
  .sync-chips { flex-direction: column; align-items: center; }
  .sync-points { grid-template-columns: 1fr; max-width: 400px; }
  .privacy-lead { grid-template-columns: 1fr; align-items: start; }
  .privacy-cards { grid-template-columns: 1fr; }
  .privacy-lower { grid-template-columns: 1fr; }
  .download-panel { grid-template-columns: 1fr; text-align: center; }
  .download-panel .logo { margin-inline: auto; }
  .download-panel .row { justify-content: center; }
}

@media (max-width: 639px) {
  .hero { padding-top: 36px; }
  .hero h1 { font-size: clamp(1.95rem, 9.2vw, 2.7rem); }
  .hero-actions .btn { width: 100%; }
  .hero-devices { min-height: 0; padding: 0 0 40px; }
  .hero-phone { width: 38%; }
  .hero-sync { top: 8px; right: 0; padding: 6px 10px; font-size: 0.68rem; }
  .hero-sync small { display: none; }
  .hero-tag { left: 0; bottom: 4px; padding: 8px 10px; font-size: 0.66rem; }
  .hero-tag b { font-size: 0.74rem; }
  .platform-grid { grid-template-columns: 1fr; }
  .showcase { padding: 12px; border-radius: var(--radius-xl); }
  .showcase-tabs { width: 100%; }
  .showcase-tab { flex: 1 0 auto; padding-inline: 12px; }
  .finance-visual { padding-top: 10px; }
  .finance-stat { left: -4px; width: 160px; }
  .finance-budget { right: -4px; width: 180px; }
  .download-panel { padding: 22px 18px; }
  .privacy-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-desktop,
  .hero-phone { transform: none; }
}
