/* Jap Yatra — shared site styles.
 *
 * Palette is the app's brand palette, taken from
 * android/app/src/main/java/me/nivatech/japyatra/ui/theme/Color.kt so the site and the app read as
 * one product. The app deliberately moved off Material 3's stock purple to this warm
 * saffron/sandalwood identity (see specs/2026-07-28-japyatra-signin-brand-theme-design.md); these
 * pages had been left behind on the old purple.
 *
 * Two orange tokens on purpose:
 *   --brand   #E86B17  Color.kt Primary. Decorative only — fills, rules, bullets. At 3.0:1 on white
 *                      it is not safe for text or for white text on top of it.
 *   --primary #C45108  Color.kt PrimaryDark. Anything that must be legible — links, headings,
 *                      button backgrounds. 4.6:1 on white, so it clears WCAG AA for normal text.
 *
 * join.html deliberately does NOT use this file: it is the App Links fallback interstitial and
 * redirects within milliseconds, so it keeps its styles inline rather than blocking on a request.
 */

:root {
  color-scheme: light dark;
  --bg: #fbefe0;          /* Theme.kt surfaceContainerHigh */
  --surface: #fff;
  --brand: #e86b17;       /* Color.kt Primary — decorative only */
  --primary: #c45108;     /* Color.kt PrimaryDark — text-safe */
  --text: #2f2a26;        /* Color.kt TextPrimary */
  --muted: #6c625b;       /* Color.kt TextSecondary */
  --line: #e8ddd2;        /* Color.kt DividerWarm */
  --note-bg: #fff3e5;     /* Color.kt SurfaceVariant */
  --sand: #d8c3a5;        /* Color.kt AccentSand */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151311;        /* Color.kt BackgroundDark */
    --surface: #221f1b;   /* Color.kt SurfaceDark */
    --brand: #f08b3e;     /* Color.kt PrimaryDarkTheme */
    --primary: #f08b3e;
    --text: #f6f1ea;      /* Color.kt TextPrimaryDark */
    --muted: #c9c0b8;     /* Color.kt TextSecondaryDark */
    --line: #3d352e;
    --note-bg: #2c2823;
    --sand: #5a4c42;      /* Color.kt OutlineDark */
  }
}

* { box-sizing: border-box; }

body {
  margin: 0; padding: 24px 16px 64px;
  font-family: -apple-system, Roboto, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--primary); }

.brand { font-size: 22px; font-weight: 700; margin: 0 0 4px; }

/* Pill call to action. Solid --primary, not --brand: white text needs the darker tone. */
a.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  background: var(--primary); color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 4px 14px rgba(196, 81, 8, .28);
}
a.btn:hover { background: #a84406; }
@media (prefers-color-scheme: dark) {
  a.btn { background: var(--brand); color: #3a1b02; box-shadow: none; }
  a.btn:hover { background: #f5a65b; }
}

/* ---------- long-form documents (privacy.html, terms.html) ---------- */

.doc {
  max-width: 720px; margin: 0 auto; padding: 32px 28px 40px;
  background: var(--surface); border-radius: 20px; box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}
.doc header { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 8px; }
.doc h1 { font-size: 26px; margin: 12px 0 6px; line-height: 1.3; }
.date { color: var(--muted); font-size: 14px; margin: 0; }
.doc h2 { font-size: 19px; margin: 32px 0 8px; padding-top: 4px; }
.doc h3 { font-size: 16px; margin: 22px 0 4px; color: var(--primary); }
.doc p, .doc li { color: var(--muted); }
.doc p { margin: 8px 0; }
.doc ul { margin: 8px 0; padding-left: 22px; }
.doc ol { margin: 12px 0; padding-left: 24px; }
.doc li { margin: 4px 0; }
.doc ol > li { margin: 10px 0; padding-left: 2px; }
.doc ol > li::marker { font-weight: 700; }
.doc li::marker { color: var(--brand); }
strong { color: var(--text); }

/* Centred call to action inside a document (the deletion request button). */
.doc .cta { text-align: center; margin: 24px 0 8px; }
.doc .cta .hint { font-size: 13px; margin-top: 10px; }

.note {
  background: var(--note-bg); border-left: 4px solid var(--brand);
  border-radius: 8px; padding: 12px 16px; margin: 16px 0;
}
.note p { margin: 4px 0; }

.tablewrap { overflow-x: auto; margin: 16px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 460px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--text); font-weight: 600; white-space: nowrap; }
td { color: var(--muted); }
.yes { color: var(--primary); font-weight: 600; }
.no { font-weight: 600; }

footer {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  text-align: center; font-size: 14px; color: var(--muted);
}
footer a { font-weight: 600; text-decoration: none; }
footer .sep { color: var(--sand); margin: 0 8px; }

/* ---------- home page ---------- */

.home { max-width: 940px; margin: 0 auto; }

.hero { text-align: center; padding: 16px 4px 8px; }
.hero h1 { font-size: 30px; line-height: 1.25; margin: 10px 0 10px; }
.hero .lede { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 22px; }

/* The six-panel feature collage. Aspect ratio is reserved up front so the page doesn't reflow
   when a 105 KB image lands — 1536x1024 is 3:2. */
.shots { margin: 30px 0 8px; }
.shots img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2;
  border-radius: 18px; border: 1px solid var(--sand);
  box-shadow: 0 8px 30px rgba(93, 64, 55, .16);
}
.shots figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }

.features { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 32px 0 8px; }
@media (min-width: 700px) { .features { grid-template-columns: 1fr 1fr; } }

.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px;
}
.feature h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.section-title { text-align: center; font-size: 20px; margin: 34px 0 0; }
.closing { text-align: center; margin: 28px 0 0; }
