/* TripMate public website (tripmate.metsoft.ro). Colors from the app icon (#1a56db) and splash (#0f2557). */
:root {
  --brand: #1a56db;
  --brand-dark: #0f2557;
  --accent: #60a5fa;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --text: #1c2333;
  --muted: #5b6478;
  --border: #dfe3ec;
  --danger: #c62828;
  --todo-bg: #fff3b0;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #60a5fa;
    --bg: #10131a;
    --bg-soft: #181c26;
    --text: #e6e9f0;
    --muted: #a0a8ba;
    --border: #2a3040;
    --danger: #ef7070;
    --todo-bg: #5a4b00;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--brand); }
img, svg { max-width: 100%; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; }
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand-dark), #1a56db); color: #fff; padding: 72px 0 64px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 16px; }
.hero p { font-size: 19px; max-width: 620px; opacity: .92; margin: 0 0 28px; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none;
  background: var(--brand); color: #fff; border: 0; font-size: 16px; cursor: pointer;
}
.hero .button { background: #fff; color: var(--brand-dark); }
.button.secondary { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.button.danger { background: var(--danger); color: #fff; }
.button[disabled] { opacity: .6; cursor: default; }
.note { font-size: 14px; opacity: .85; margin-top: 12px; }

/* Sections */
section { padding: 56px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: 28px; line-height: 1.25; margin: 0 0 20px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { color: var(--muted); font-size: 18px; margin-top: -8px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
section.soft .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); }
.icon { font-size: 28px; line-height: 1; margin-bottom: 10px; }

/* Documents (privacy, terms) */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: 34px; margin: 0 0 4px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc li { margin-bottom: 6px; }
table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-soft); }
.table-scroll { overflow-x: auto; }

/* Placeholders still to fill before publishing */
mark.todo { background: var(--todo-bg); color: inherit; padding: 0 4px; border-radius: 4px; }

/* Forms */
form { display: grid; gap: 12px; max-width: 460px; }
label { font-weight: 600; }
input[type="email"] {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); width: 100%;
}
input[type="email"]:focus { outline: none; border-color: var(--brand); }
.message { padding: 14px 16px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border); }
.message.error { border-color: var(--danger); color: var(--danger); }
[hidden] { display: none !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .hero { padding: 48px 0; }
  section { padding: 40px 0; }
}

/* Password fields (reset page) */
input[type="password"] {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); width: 100%;
}
input[type="password"]:focus { outline: none; border-color: var(--brand); }
.hint { color: var(--muted); font-size: 14px; margin: 0; }

/* Account deletion choices (2026-11-23) */
.trip-choice { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; margin: 8px 0;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); }
.trip-choice .follow { white-space: nowrap; font-size: 14px; }
.hint.warn { color: var(--danger); }
label.choice { display: block; margin: 8px 0; font-weight: normal; }

/* Help page (2026-12-03): Q&A by screen */
.help-search {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); width: 100%; margin: 0 0 12px;
}
.help-search:focus { outline: none; border-color: var(--brand); }
.help-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 8px; }
.help-toc a { padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-size: 15px; }
.help-section { padding: 8px 0; scroll-margin-top: 80px; }
.help-section h2 { margin-top: 28px; }
details.qa { border-bottom: 1px solid var(--border); padding: 10px 0; scroll-margin-top: 80px; }
details.qa summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; position: absolute; right: 4px; top: 0; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1.4; }
details.qa[open] summary::after { content: "\2212"; }
details.qa p, details.qa ul { margin: 8px 0 4px; }
details.qa li { margin-bottom: 4px; }
