/* 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;
  --geo: #31E981;
  --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: 56px; height: 56px; }
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(--geo); 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(--geo); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.pill svg { width: 12px; height: 12px; }

/* Element cards */
.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); }
.badge { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; }
.badge svg { width: 18px; height: 18px; }
.badge.travel { background: #E6F1FB; fill: #185FA5; }
.badge.stay { background: #EEEDFE; fill: #533AB7; }
.badge.food { background: #FBEAF0; fill: #993556; }
.badge.drink { background: #FAEEDA; fill: #854F0B; }
.badge.outdoors { background: #E1F5EE; fill: #0F6E56; }
.el .body { flex: 1; min-width: 0; }
.el .n { font-family: var(--display); font-size: 14px; line-height: 1.2; }
.el .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.el .meta-chips { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.m { font-size: 10.5px; border-radius: 999px; padding: 1px 8px; background: #F3F3F3; color: var(--body); }
.m.blue { background: #E6F1FB; color: #185FA5; } .m.green { background: #E1F5EE; color: #0F6E56; }
.el .saves { display: flex; gap: 6px; font-size: 14px; }
.heart { color: #E24B4A; } .star { color: #F0A020; } .off { color: #d4d4d4; }
.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); }

/* Today card (Home) */
.home-title { font-family: var(--display); font-size: 28px; padding: 4px 16px 6px; }
.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 .badge { width: 24px; height: 24px; border-radius: 7px; }
.trow .badge svg { width: 13px; height: 13px; }
.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 .badge { background: rgba(255,255,255,.9); }
.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%; }
}
