/* Itin website: homepage, privacy policy, support. Colors and type from src/theme/tokens.ts. */
@font-face {
  font-family: "Cal Sans";
  src: url("/fonts/CalSans-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #F1EFE8;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --body: #555555;
  --muted: #777777;
  --faint: #999999;
  --border: #ECECEC;
  --accent: #E34234;
  --accent-text: #F1EFE8;
  /* The app's Classic card icon tint (src/theme/itinTheme.tsx): 30% accent on white, mark 55% accent into ink. */
  --icon-bg: #F7C6C2;
  --icon-fg: #893028;
  --display: "Cal Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { display: block; max-width: 100%; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

header { padding: 26px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.logo { display: block; line-height: 0; }
.logo svg { display: block; width: 79px; height: 30px; }
nav a { color: var(--body); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav a:first-child { margin-left: 0; }
nav a:hover { color: var(--ink); }

h1, h2, .display { font-family: var(--display); font-weight: 400; letter-spacing: -0.5px; }
h1 { font-size: 56px; line-height: 1.02; margin: 0 0 18px; }
h2 { font-size: 36px; line-height: 1.08; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 22px 0 4px; }
p, li { color: var(--body); }
ul { padding-left: 22px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--body); margin: 0 0 28px; }
.meta { font-size: 14px; color: var(--muted); }
.eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: 1px; color: var(--accent); margin-bottom: 10px; }

.button { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 22px; font-weight: 700; text-decoration: none; }
.button svg { width: 18px; height: 18px; fill: #fff; }

/* Text pages (privacy, support) */
.card { background: var(--surface); border-radius: 22px; padding: 40px 36px; }
.card h1 { font-size: 44px; }
.card h2 { font-size: 24px; margin-top: 36px; }
main { padding-bottom: 40px; }

/* Homepage sections */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 24px 0 56px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.row.flip .copy { order: 2; }
.copy p { font-size: 18px; }
.points { list-style: none; padding: 0; margin: 18px 0 0; }
.points li { position: relative; padding-left: 22px; margin: 8px 0; }
.points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.stage { display: flex; justify-content: center; }

.closing { text-align: center; padding: 64px 0 24px; }
.closing p { font-size: 18px; margin: 0 0 24px; }

footer { padding: 24px 0 40px; font-size: 14px; color: var(--faint); }
footer a { color: var(--muted); margin-right: 16px; }

/* ---------- Phone mockups: HTML replicas of real app screens ---------- */
.phone {
  width: 300px; flex: none;
  background: var(--surface);
  border: 10px solid #111; border-radius: 46px;
  box-shadow: 0 30px 60px rgba(26, 26, 26, 0.18);
  overflow: hidden;
  font-family: var(--text); color: var(--ink);
}
.screen-bg { background: var(--bg); }
.status { height: 34px; display: flex; justify-content: center; align-items: center; }
.status::after { content: ""; width: 90px; height: 24px; border-radius: 14px; background: #111; }

/* Trip hero */
.trip-hero { position: relative; height: 210px; background: #8A6A4F center/cover no-repeat; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
.trip-hero.yerevan { background-image: linear-gradient(transparent 40%, rgba(0,0,0,.55)), url("/img/yerevan.jpg"); }
.trip-hero.coast { background-image: linear-gradient(transparent 40%, rgba(0,0,0,.55)), url("/img/cannon-beach.jpg"); }
.trip-hero .t { font-family: var(--display); font-size: 25px; color: #fff; line-height: 1.1; }
.trip-hero .d { font-size: 12px; color: rgba(255,255,255,.88); margin-top: 4px; }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.avatars { display: flex; }
.av { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #fff; display: grid; place-items: center; color: #fff; font-family: var(--display); font-size: 11px; margin-left: -7px; }
.av:first-child { margin-left: 0; }
.av.blue { background: #185FA5; } .av.brown { background: #854F0B; } .av.purple { background: #533AB7; } .av.red { background: #E24B4A; }
.share { background: var(--accent); color: var(--accent-text); border-radius: 999px; padding: 4px 12px; font-family: var(--display); font-size: 13px; }
.chips { display: flex; gap: 6px; padding: 10px 14px; overflow: hidden; }
.chip { border: 1px solid #ddd; border-radius: 999px; padding: 3px 11px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.day { padding: 6px 14px 4px; }
.day-title { font-family: var(--display); font-size: 19px; margin: 6px 0; }
.pill { display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: var(--accent-text); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.pill svg { width: 12px; height: 12px; }

/* Stop cards: the app's card (DECISIONS.md #68, #83): "time · type", the title, one line, a badge. */
.el { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 14px; padding: 10px; margin: 8px 0; background: var(--surface); }
.sym { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--icon-bg); color: var(--icon-fg); }
.el .body { flex: 1; min-width: 0; }
.el .top { font-size: 10.5px; font-weight: 700; color: var(--faint); margin-bottom: 1px; }
.el .when { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.el .n { font-family: var(--display); font-size: 15.5px; line-height: 1.25; display: flex; align-items: center; }
/* A route's thin arrow (FRA → IAD), from the brand guide. */
.arr { width: 14px; height: 10px; margin: 0 5px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.el .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
/* A badge only when its box is checked: a solid accent pill with a tick. */
.badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; background: var(--accent); color: var(--accent-text); font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.badge svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.save { width: 18px; height: 18px; flex: none; fill: none; stroke: #9C978D; stroke-width: 1.8; stroke-linejoin: round; }
.save.on { fill: var(--accent); stroke: var(--accent); }
/* A neighborhood holding its stops (DECISIONS.md #68). */
.el.hood { display: block; }
.el.hood .row-in { display: flex; gap: 10px; align-items: flex-start; }
.nested-toggle { display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: var(--accent-text); font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px 2px 10px; margin: 6px 0 2px 44px; }
.nested-toggle svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.el.inner { background: #F7F5EC; margin: 6px 0 0; padding: 8px; }
.tabs { display: flex; gap: 22px; padding: 0 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; color: var(--faint); }
.tabs span { padding: 10px 0; border-bottom: 2px solid transparent; }
.tabs .on { color: var(--ink); border-bottom-color: var(--ink); }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 8px; }
.photos img { width: 100%; height: 70px; object-fit: cover; border-radius: 8px; }
.stay-banner { display: flex; align-items: center; gap: 10px; background: #F7F5EC; border: 1px solid #EAE7DC; border-radius: 14px; padding: 10px; margin: 8px 0; }
.stay-banner .n { font-family: var(--display); font-size: 13px; }
.stay-banner .s { font-size: 11px; color: var(--muted); }
.bed { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.bed .sym { width: 24px; height: 24px; background: none; color: var(--accent-text); }
.bed.light { background: rgba(255,255,255,.9); }
.bed.light .sym { color: var(--accent); }
/* Research board */
.quick { margin: 10px 14px 4px; border: 1px solid #ddd; border-radius: 14px; padding: 8px 12px; font-size: 12px; color: #bbb; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 14px 16px; }
.tile { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.tile img, .tile .tileicon { width: 100%; height: 72px; object-fit: cover; }
.tile .tileicon { display: grid; place-items: center; background: var(--icon-bg); }
.tile .tileicon .sym { width: 40px; height: 40px; background: none; }
.tile .tb { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; padding: 7px 8px; }
.tile .n { flex: 1; font-family: var(--display); font-size: 12px; line-height: 1.2; }
.tile .added { width: 100%; font-size: 10px; font-weight: 700; color: #0F6E56; }
/* The group's vote on an idea (DECISIONS.md #74). */
.vote { flex: none; font-size: 10.5px; font-weight: 800; color: #9C978D; border: 1.5px solid #ddd; border-radius: 999px; padding: 1px 7px; }
.vote.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
/* The Nightcap theme (Espresso, Daybreak, Lagoon), as the app works it out (src/theme/itinTheme.tsx). */
.trip-hero.japan { background-image: linear-gradient(transparent 40%, rgba(0,0,0,.55)), url("/img/japan.jpg"); }
.phone.nightcap { background: #280E11; color: #FEF5C2; }
.nightcap .day-title { color: #FEF5C2; }
.nightcap .pill { background: #B1E8FF; color: #280E11; }
.nightcap .el { background: #351C1C; border-color: #4A332D; }
.nightcap .el .top, .nightcap .el .s { color: #B3A484; }
.nightcap .el .when { color: #FEF5C2; }
.nightcap .sym { background: #514F58; color: #D4EEE4; }
.nightcap .stay-banner { background: #3B2321; border-color: #4F3831; }
.nightcap .stay-banner .s { color: #887661; }
.nightcap .bed { background: #B1E8FF; }
.nightcap .bed .sym { background: none; color: #280E11; }
.nightcap .badge { background: #B1E8FF; color: #280E11; }
.nightcap .save { stroke: #887661; }
.nightcap .save.on { fill: #B1E8FF; stroke: #B1E8FF; }

/* Today card (Home) */
.home-title { padding: 6px 16px 8px; line-height: 0; }
.home-title svg { width: 63px; height: 24px; }
.today { margin: 6px 12px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px; }
.today .eyebrow-s { font-family: var(--display); font-size: 10px; letter-spacing: .6px; color: var(--faint); }
.today .trip { font-family: var(--display); font-size: 17px; margin: 2px 0 8px; }
.trow { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 12.5px; }
.trow .lbl { width: 44px; font-family: var(--display); font-size: 9.5px; color: var(--faint); letter-spacing: .5px; }
.trow .nm { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .tm { color: var(--muted); font-size: 11.5px; }
.trow .sym { width: 24px; height: 24px; border-radius: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.next { background: var(--accent); border-radius: 14px; padding: 12px; margin: 8px 0; color: #fff; }
.next .head { display: flex; justify-content: space-between; font-family: var(--display); font-size: 9.5px; letter-spacing: .5px; }
.next .bodyrow { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.next .n { font-family: var(--display); font-size: 16px; line-height: 1.15; }
.next .s { font-size: 12px; opacity: .92; margin-top: 2px; }
.tripcard { margin: 0 12px 12px; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.tripcard .cover { height: 120px; background: center/cover no-repeat; }
.tripcard .cover.coast { background-image: url("/img/cannon-beach.jpg"); }
.tripcard .cover.japan { background-image: url("/img/japan.jpg"); }
.tripcard .info { padding: 10px 12px; }
.tripcard .n { font-family: var(--display); font-size: 16px; }
.tripcard .s { font-size: 11.5px; color: var(--muted); }
.section-label { display: inline-block; margin: 2px 14px 8px; border: 1px solid #ddd; border-radius: 999px; padding: 2px 10px; font-family: var(--display); font-size: 10px; letter-spacing: .8px; color: var(--muted); }

/* Explore */
.map { position: relative; height: 330px; overflow: hidden; background: #CFE3EC; }
/* An illustrated map: the app's beige for land on soft blue water. */
.land { position: absolute; background: #EFEADB; }
.land.l1 { left: -6%; top: 22%; width: 52%; height: 44%; border-radius: 58% 42% 46% 54% / 52% 38% 62% 48%; }
.land.l2 { left: 52%; top: 16%; width: 46%; height: 34%; border-radius: 42% 58% 60% 40% / 48% 56% 44% 52%; }
.land.l3 { left: 30%; top: 62%; width: 26%; height: 30%; border-radius: 50% 50% 38% 62% / 40% 46% 54% 60%; }
.land.l4 { left: 74%; top: 56%; width: 30%; height: 22%; border-radius: 62% 38% 52% 48% / 50% 62% 38% 50%; }
.map .label { position: absolute; z-index: 1; top: 14px; left: 16px; font-family: var(--display); font-size: 24px; }
.map .sub { position: absolute; z-index: 1; top: 46px; left: 16px; font-size: 11px; color: #3b4a55; }
.pin { position: absolute; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: #FF5522; border: 2.5px solid #fff; color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 14px; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.pin.p1 { left: 18%; top: 42%; } .pin.p2 { left: 30%; top: 58%; } .pin.p3 { left: 63%; top: 34%; } .pin.p4 { left: 80%; top: 48%; }
.sheet { background: var(--surface); border-radius: 22px 22px 0 0; margin-top: -26px; position: relative; padding: 12px 14px 18px; }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: #ddd; margin: 0 auto 10px; }
.sheet .t { font-family: var(--display); font-size: 18px; }
.sheet .s { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.itin { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.itin .cv { width: 46px; height: 46px; border-radius: 10px; background: center/cover no-repeat #993556; flex: none; }
.itin .cv.japan { background-image: url("/img/japan.jpg"); }
.itin .cv.brown { background-color: #854F0B; }
.itin .n { font-family: var(--display); font-size: 13.5px; }
.itin .s { margin: 0; }
.itin .copy-btn { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 10px; }

.offline-tag { display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 700; margin: 0 auto; }
.center { text-align: center; padding: 6px 0 2px; }

@media (max-width: 860px) {
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  .hero, .row { grid-template-columns: 1fr; gap: 32px; }
  .row.flip .copy { order: 0; }
  .row { padding: 36px 0; }
  .card { padding: 30px 22px; }
}
@media (max-width: 360px) {
  .phone { width: 100%; }
}

/* An invite code on the join page (decision 146) */
.code { font-family: ui-monospace, Menlo, monospace; font-size: 32px; font-weight: 700; letter-spacing: 0.08em; margin: 0 0 20px; }
