/* HitchGrove brand — same colors as the app and its icon (see AndroidRV/Documents/BRAND.md). */
:root {
  --pine: #1F4E3D;        /* primary: buttons, headings, app bar */
  --pine-deep: #123026;   /* hover, footer */
  --fern: #4E8F6A;        /* secondary green */
  --sage: #6FBF8E;        /* light accents, illustrations */
  --mist: #E4F0E8;        /* tinted panels */
  --trail: #FF9800;       /* accent: the map pin — shapes and highlights, never small text on white */
  --trail-text: #A85800;  /* orange for text on light backgrounds (AA contrast) */
  --ink: #102027;         /* body text */
  --ink-soft: #455A64;    /* secondary text */
  --paper: #F6F8F5;       /* page background */
  --card: #FFFFFF;
  --line: #D5DED8;
  --focus: #FF9800;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 32, 39, .06), 0 6px 20px rgba(16, 32, 39, .06);
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --pine: #7FB89F; --pine-deep: #0B1F18; --fern: #6FBF8E; --mist: #1A2C25; --trail-text: #FFB547;
    --ink: #E8EFEA; --ink-soft: #A9BDB3; --paper: #0F1A16; --card: #15241E; --line: #2A3D35;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; font-size: 17px; }
a { color: var(--pine); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.25; color: var(--pine); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: .2em 0 .4em; }
h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header: logo + wordmark + nav */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pine); font-weight: 800; font-size: 1.25rem; }
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .95rem; }
.site-nav a { text-decoration: none; color: var(--ink-soft); padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--pine); border-bottom-color: var(--trail); }

main { padding: 28px 0 48px; overflow-wrap: anywhere; }

/* Home page */
.hero { background: linear-gradient(160deg, #1F4E3D 0%, #123026 100%); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { color: #fff; }
.hero p { color: #D7E8DF; font-size: 1.12rem; max-width: 34em; }
.hero .accent { color: var(--trail); }
.hero img { width: 100%; max-width: 280px; justify-self: center; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); }
.badge { display: inline-block; background: rgba(255,152,0,.16); color: #FFC069; border: 1px solid rgba(255,152,0,.45); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.button { display: inline-block; background: var(--trail); color: #1B1300; font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 999px; margin-top: 8px; }
.button.secondary { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); margin-left: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin: .2em 0 .3em; font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-soft); }
.icon { font-size: 1.6rem; }
.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.price .card { text-align: center; }
.price .amount { font-size: 2rem; font-weight: 800; color: var(--pine); }
.price .best { border: 2px solid var(--trail); }
.note { color: var(--ink-soft); font-size: .93rem; }
.panel { background: var(--mist); border-radius: var(--radius); padding: 18px 20px; }

/* Policy pages */
li { margin: .4rem 0; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .93rem; background: var(--card); }
th, td { padding: 12px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
th { background: var(--mist); color: var(--pine); }

.site-footer { background: var(--pine-deep); color: #C9DCD2; font-size: .92rem; }
.site-footer .wrap { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: #fff; }

@media (max-width: 720px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; }
  .hero img { max-width: 160px; grid-row: 1; justify-self: start; }
  .button.secondary { margin-left: 0; margin-top: 10px; }
  body { font-size: 16px; }
}
