/* Secrette website (secrette.app): the landing page, the support page and the legal pages. The app's dark lilac-and-gold theme,
   one font family (IBM Plex Sans Hebrew) for everything; Jost only for the SECRETTE wordmark, as in the app. */
:root {
  --bg: #0f0d14;
  --surface: #18151e;
  --raised: #231f2a;
  --line: #2c2734;
  --text: #f6f1f4;
  --muted: #bbb1bf;
  --lilac: #b39ae6;
  --lilac-light: #ddd0ff;
  --lilac-deep: #5a4296;
  --lilac-cta: #7a5fc8;
  --gold: #f2d9a2;
  --gold-soft: #efdcb3;
  --metal: linear-gradient(135deg, #b39ae6 0%, #7a5fc8 45%, #5a4296 100%);
  --metal-border: linear-gradient(135deg, #f2d9a2 0%, #b39ae6 42%, #5a4296 100%);
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: 'IBM Plex Sans Hebrew', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(122, 95, 200, 0.28), transparent 60%),
    radial-gradient(800px 500px at 0% 10%, rgba(242, 217, 162, 0.08), transparent 60%);
  background-repeat: no-repeat;
}
a { color: var(--lilac-light); text-underline-offset: 3px; }
a:hover { color: var(--gold-soft); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.narrow { max-width: 760px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.wordmark { font-family: 'Jost', 'IBM Plex Sans Hebrew', sans-serif; font-weight: 400; letter-spacing: 0.42em; font-size: 20px; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; direction: ltr; }
.wordmark::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lilac); }
.lang { font-size: 14px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.lang:hover { color: var(--text); border-color: var(--lilac); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-block: 40px 64px; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: 0.08em; color: var(--gold-soft); border: 1px solid rgba(242, 217, 162, 0.35); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.08; margin: 0 0 18px; font-weight: 700; text-wrap: balance; }
h1 .glow { background: linear-gradient(120deg, var(--gold) 0%, var(--lilac-light) 55%, var(--lilac) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--text); color: #000; border-radius: 14px; padding: 10px 18px; text-decoration: none; font-weight: 600; font-size: 15px; }
.badge svg { width: 20px; height: 20px; }
.badge small { display: block; font-weight: 400; font-size: 11px; opacity: 0.7; line-height: 1.1; }
.age { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }

/* the stack of portraits in the hero */
.stack { position: relative; height: 520px; }
.stack figure { position: absolute; margin: 0; width: 56%; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); }
.stack figure img { width: 100%; height: 100%; object-fit: cover; }
.stack figure:nth-child(1) { inset-inline-start: 0; top: 40px; transform: rotate(-6deg); }
.stack figure:nth-child(2) { inset-inline-end: 0; top: 0; transform: rotate(5deg); z-index: 2; }
.stack figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(to top, rgba(15, 13, 20, 0.92), transparent); font-weight: 600; }
.bubble { position: absolute; z-index: 3; max-width: 70%; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; font-size: 15px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
.bubble.her { bottom: 70px; inset-inline-start: 6%; border-end-start-radius: 6px; }
.bubble.you { bottom: 18px; inset-inline-end: 4%; background: #5e45a6; border-color: transparent; border-end-end-radius: 6px; }

/* sections */
section { padding-block: 56px; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; margin: 0 0 12px; text-wrap: balance; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.card .body { padding: 14px 16px 18px; }
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature .dot { width: 36px; height: 36px; border-radius: 12px; background: var(--metal); margin-bottom: 14px; display: grid; place-items: center; font-size: 18px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.honest { border: 1px solid rgba(242, 217, 162, 0.25); background: linear-gradient(135deg, rgba(242, 217, 162, 0.06), rgba(122, 95, 200, 0.06)); border-radius: var(--radius); padding: 24px 26px; }
.honest p { margin: 0; color: var(--gold-soft); }

/* footer */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* legal and support pages */
.doc { padding-block: 24px 40px; }
.doc h1 { font-size: clamp(30px, 4.6vw, 42px); }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: #e6dfe8; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-bottom: 6px; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: start; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.doc th { color: var(--gold-soft); font-weight: 600; }
.tablewrap { overflow-x: auto; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 16px; }
  .stack { height: 440px; max-width: 460px; width: 100%; margin-inline: auto; }
  .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .stack { height: 380px; }
  .features { grid-template-columns: 1fr; }
  .cast { gap: 12px; }
  .card .body { padding: 10px 12px 14px; }
  .card p { font-size: 14px; }
}
