/* Per Diem website. Tokens follow apps/mobile/src/theme/tokens.ts (approved v2 design). */
:root {
  --bg: #f7f8f9;
  --card: #ffffff;
  --border: #eef0f2;
  --line: #e5e7eb;
  --text: #111827;
  --text2: #374151;
  --muted: #6b7280;
  --teal: #0f766e;
  --teal-mid: #14a08f;
  --teal-tint: #e3f4f1;
  --teal-note: #e9f6f3;
  --teal-note-text: #0b5d57;
  --teal-border: #bfe6de;
  --header: linear-gradient(135deg, #118377 0%, #17a291 55%, #45c7b2 100%);
  --button: linear-gradient(135deg, #17a291, #0f766e);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.04);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text2);
  font: 400 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 248, 249, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; letter-spacing: -0.2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 6px 10px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--teal); background: var(--teal-tint); }
.lang { font-size: 12.5px; font-weight: 600; color: var(--teal); border: 1px solid var(--teal-border); border-radius: 999px; padding: 4px 10px; }
.lang:hover { text-decoration: none; background: var(--teal-note); }

@media (max-width: 640px) {
  .top .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; margin-left: -10px; }
  .lang { margin-left: auto; }
}

/* Hero */
.hero { background: var(--header); color: #fff; padding: 64px 0 88px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.08);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.3px; background: rgba(255, 255, 255, 0.16); padding: 4px 11px; border-radius: 999px; }
.hero h1 { color: #fff; font-size: 38px; line-height: 1.12; letter-spacing: -1px; font-weight: 650; margin: 16px 0 14px; }
.hero p { color: rgba(255, 255, 255, 0.9); font-size: 16px; margin: 0 0 24px; max-width: 30em; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--teal);
  font-size: 13.5px; font-weight: 600; padding: 10px 16px; border-radius: 14px;
}
.badge.soon { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.badge:hover { text-decoration: none; }

/* Phone-like summary card in the hero */
.phone {
  background: #fff; color: var(--text); border-radius: 26px; padding: 18px; box-shadow: 0 20px 50px rgba(6, 60, 54, 0.28);
  max-width: 300px; justify-self: end; width: 100%;
}
.phone .label { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.phone .sum { font-size: 32px; font-weight: 650; letter-spacing: -1px; margin: 2px 0 12px; }
.phone .row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 8px 0; border-top: 1px solid var(--border); }
.phone .row b { font-weight: 600; color: var(--text); }
.chip { display: inline-block; font-size: 11px; font-weight: 600; color: var(--teal-note-text); background: var(--teal-note); border-radius: 999px; padding: 3px 9px; }

@media (max-width: 760px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .phone { justify-self: start; }
}

/* Content */
main { padding: 0 0 48px; }
.lift { margin-top: -48px; position: relative; z-index: 2; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card h3 { margin: 10px 0 6px; font-size: 15px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }
.icon { width: 34px; height: 34px; border-radius: 10px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; font-size: 17px; }

h1, h2, h3 { color: var(--text); letter-spacing: -0.3px; }
section { margin-top: 40px; }
section > h2 { font-size: 22px; margin: 0 0 14px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan h3 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.plan .price { font-size: 26px; font-weight: 650; color: var(--text); letter-spacing: -0.8px; margin: 4px 0; }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan ul { margin: 12px 0 0; padding: 0; list-style: none; }
.plan li { font-size: 14px; padding: 6px 0 6px 24px; position: relative; border-top: 1px solid var(--border); }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--teal-mid); font-weight: 700; }
.plan.premium { border-color: var(--teal-border); }

.note { background: var(--teal-note); color: var(--teal-note-text); border: 1px solid var(--teal-border); border-radius: 14px; padding: 14px 16px; font-size: 14px; }

/* Long text pages (privacy, terms, support, deletion) */
.page-head { background: var(--header); color: #fff; padding: 40px 0 64px; }
.page-head h1 { color: #fff; font-size: 30px; margin: 0 0 6px; letter-spacing: -0.8px; }
.page-head p { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 14.5px; }
.doc { margin-top: -40px; }
.doc .card { padding: 28px 32px; }
@media (max-width: 640px) { .doc .card { padding: 20px; } }
.doc h2 { font-size: 20px; margin: 0 0 4px; }
.doc h3 { font-size: 16px; margin: 26px 0 6px; }
.doc p, .doc li { font-size: 14.5px; }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc .meta { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.doc + .doc { margin-top: 16px; }
.table { overflow-x: auto; margin: 10px 0; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--text); font-weight: 600; background: var(--bg); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 38px; margin: 8px 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal); font-weight: 700; font-size: 13px; display: grid; place-items: center;
}
.btn { display: inline-block; background: var(--button); color: #fff; font-weight: 600; font-size: 14px; padding: 11px 18px; border-radius: 14px; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
details { border-top: 1px solid var(--border); padding: 12px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; color: var(--text); font-weight: 600; font-size: 14.5px; }
details p { margin: 8px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; }
footer a { color: var(--muted); }

.sr-only { position: absolute; left: -9999px; top: 0; }
.sr-only:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 10px; }
.page-head a { color: #fff; text-decoration: underline; }
