/* Triptinerary — support & privacy site
   Colours come from the app icon gradient (#005BCC → #08735F). */

:root {
  --brand: #005bcc;
  --brand-2: #08735f;
  --brand-soft: #e8f1fc;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #14202b;
  --muted: #5b6875;
  --line: #e1e7ee;
  --ok-bg: #e7f6ef;  --ok-text: #0b5b3f;
  --err-bg: #fdeceb; --err-text: #9b1c14;
  --todo: #fff1b8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .05), 0 6px 24px rgba(16, 32, 48, .06);
  --max: 760px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4c9bff;
    --brand-2: #3fcf9f;
    --brand-soft: #14263d;
    --bg: #0d1218;
    --surface: #151c24;
    --text: #e8eef4;
    --muted: #9aa8b6;
    --line: #26313d;
    --ok-bg: #0f2e22;  --ok-text: #8ee0b9;
    --err-bg: #3a1513; --err-text: #ffb4ab;
    --todo: #5a4a00;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(135deg, #005bcc 0%, #08735f 100%);
  color: #fff;
}
.site-header .inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px; }
.nav a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; opacity: .9; }
.nav a:hover { background: rgba(255,255,255,.14); opacity: 1; }
.nav a[aria-current="page"] { background: rgba(255,255,255,.22); opacity: 1; }

.hero { max-width: var(--max); margin: 0 auto; padding: 26px 16px 34px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(28px, 6vw, 38px); line-height: 1.15; letter-spacing: -.02em; }
.hero p { margin: 0; font-size: 18px; opacity: .92; max-width: 46ch; }

/* ---------- layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 16px 48px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin-top: -18px; position: relative;
}
.card + .card, section + section { margin-top: 20px; }
h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; margin: 34px 0 10px; }
h3 { font-size: 18px; margin: 22px 0 6px; }
.card > h2:first-child, section > h2:first-child { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- quick links ---------- */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.quick a {
  display: block; height: 100%; padding: 14px 16px; border-radius: 12px; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); background: var(--surface);
}
.quick a:hover { border-color: var(--brand); }
.quick strong { display: block; color: var(--brand); }
.quick span { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 12px 28px 12px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.faq details ul { margin: -6px 0 14px; padding-left: 20px; color: var(--muted); }
.faq details li { margin: 4px 0; }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err-text); }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.field-error { font-size: 13px; color: var(--err-text); margin-top: 5px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
button {
  font: inherit; font-weight: 700; font-size: 16px; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #005bcc, #08735f); border: 0; border-radius: 12px; padding: 12px 22px;
}
button:hover { filter: brightness(1.06); }
button[disabled] { opacity: .6; cursor: progress; }

.status { border-radius: 10px; padding: 12px 14px; margin-top: 14px; font-size: 15px; }
.status[hidden] { display: none; }
.status.ok { background: var(--ok-bg); color: var(--ok-text); }
.status.err { background: var(--err-bg); color: var(--err-text); }

/* ---------- privacy ---------- */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.glance li { background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; }
.glance strong { display: block; margin-bottom: 2px; }
.glance span { font-size: 15px; color: var(--muted); }
.toc { columns: 2; column-gap: 24px; padding-left: 20px; margin: 0; }
@media (max-width: 560px) { .toc { columns: 1; } }
.toc li { margin: 2px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.data th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* Placeholder markers: anything inside <mark class="todo"> must be confirmed
   or replaced before publishing. Search the HTML for class="todo". */
mark.todo { background: var(--todo); color: inherit; padding: 0 3px; border-radius: 3px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .inner {
  max-width: var(--max); margin: 0 auto; padding: 20px 16px 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 16px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
