/* ==========================================================================
   Redwing website: main stylesheet
   Colours follow the app: Redwing red (#D92624) with the soft blush of the icon.
   ========================================================================== */

:root {
  --red: #d92624;
  --red-strong: #b81d1c;
  --red-deep: #8f1515;
  --red-soft: #fde4e2;
  --blush-50: #fff8f7;
  --blush-100: #ffeeec;
  --blush-200: #ffdcd9;
  --blush-300: #ffc3bf;

  --paper: #fffbfa;
  --card: #ffffff;
  --ink: #1f1a1b;
  --ink-2: #463d3f;
  --muted: #6d6365;
  --line: #efe1df;
  --line-strong: #e3cfcc;
  --shadow-rgb: 120 30 28;

  --store-bg: #111;
  --store-ink: #fff;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --red: #ff4a4a;
    --red-strong: #ff6b69;
    --red-deep: #ffb3b0;
    --red-soft: #3a1d1e;
    --blush-50: #1b1516;
    --blush-100: #231a1b;
    --blush-200: #2f2224;
    --blush-300: #4a2e30;

    --paper: #141011;
    --card: #1e1819;
    --ink: #f8eeed;
    --ink-2: #dccfcf;
    --muted: #ae9fa0;
    --line: #342a2b;
    --line-strong: #463a3b;
    --shadow-rgb: 0 0 0;

    --store-bg: #fff;
    --store-ink: #111;
    color-scheme: dark;
  }
}

:lang(ja) {
  --font-display: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --font-body: -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

:lang(ja) body { line-height: 1.8; }

img, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-strong); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; color: var(--ink); }
:lang(ja) :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.35; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--red); }
:lang(ja) :is(h1, h2) em { font-style: normal; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-s);
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--paper); }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red);
}
:lang(ja) .eyebrow { letter-spacing: .04em; }

.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); line-height: 1.55; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 16px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -10px rgb(var(--shadow-rgb) / .55); }
.btn-primary:hover { background: var(--red-strong); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 15px; }

/* App Store button (swap for Apple's official badge: see README) */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 8px 22px 8px 16px; border-radius: 14px;
  background: var(--store-bg); color: var(--store-ink); text-decoration: none;
  box-shadow: 0 14px 30px -16px rgb(0 0 0 / .55);
  transition: transform .15s ease, box-shadow .2s;
}
.store-btn:hover { color: var(--store-ink); transform: translateY(-1px); box-shadow: 0 18px 34px -16px rgb(0 0 0 / .6); }
.store-btn .icon { width: 28px; height: 28px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn small { font-size: 12px; font-weight: 500; opacity: .85; }
.store-btn strong { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.store-btn.is-light { background: #fff; color: #111; }
.store-btn.is-light:hover { color: #111; }
.store-btn .store-badge { height: 54px; width: auto; }
.store-btn.has-badge { background: none; padding: 0; box-shadow: none; min-height: 0; }
.store-btn.has-image { padding: 0; min-height: 0; background: none; border-radius: 14px; }
.store-btn.has-image img, .cta-band .store-btn.has-image img { display: block; height: 58px; width: auto; max-width: none; border-radius: 14px; box-shadow: none; }
.store-btn.has-image.is-light { box-shadow: 0 14px 30px -16px rgb(0 0 0 / .35); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
/* Seven menu items (and longer translations) need a little more room than the page column. */
.site-header .container { max-width: 1440px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 4px 12px -6px rgb(var(--shadow-rgb) / .5); }
.brand span { font-family: "Fraunces", Georgia, serif; font-size: 23px; font-weight: 600; letter-spacing: -.02em; }

.main-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: block; padding: 8px 11px; white-space: nowrap; border-radius: 999px;
  color: var(--ink-2); font-weight: 500; font-size: 15px; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.main-nav a:hover { background: var(--blush-100); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--red); background: var(--red-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-picker { position: relative; display: inline-flex; align-items: center; }
.lang-picker .icon { position: absolute; left: 11px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.lang-picker .chev { left: auto; right: 10px; width: 15px; height: 15px; }
.lang-picker select {
  appearance: none; -webkit-appearance: none;
  height: 38px; padding: 0 32px 0 34px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
  font: 500 14.5px var(--font-body); cursor: pointer; max-width: 210px; text-overflow: ellipsis;
  transition: border-color .2s;
}
.lang-picker select:hover { border-color: var(--red); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon-close { display: none; }

/* The menu always sits across the top. When it won't fit beside the logo,
   it moves to its own row under the logo, and scrolls sideways on small phones. */
.main-nav .nav-lang, .main-nav .nav-download { display: none; }
@media (max-width: 1440px) {
  :root { --header-h: 116px; }
  .header-inner { flex-wrap: wrap; height: auto; column-gap: 20px; row-gap: 0; }
  .brand, .header-actions { height: 64px; }
  .main-nav {
    order: 3; flex: 0 0 100%; min-width: 0;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    padding: 0 0 10px;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav ul { justify-content: center; width: max-content; min-width: 100%; }
}
@media (max-width: 900px) {
  .main-nav a { padding: 8px 9px; font-size: 14.5px; }
  .main-nav ul { flex-wrap: wrap; justify-content: center; width: auto; }
}
@media (max-width: 560px) {
  /* On phones the header scrolls away with the page, so it doesn't take up the small screen. */
  :root { --header-h: 0px; }
  .site-header { position: relative; }
  .brand, .header-actions { height: 60px; }
  .header-actions .btn { display: none; }
  .header-actions .lang-picker select { max-width: 180px; }
  .main-nav a { padding: 6px 9px; font-size: 14.5px; }
  .main-nav ul { flex-wrap: wrap; justify-content: center; width: auto; gap: 2px 2px; }
  .brand span { font-size: 21px; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); margin-top: 10px; }
.section-head p { margin-top: 16px; }
.bg-blush { background: linear-gradient(180deg, var(--blush-50), var(--blush-100)); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  background: radial-gradient(closest-side, var(--blush-200), transparent 72%);
  z-index: -1;
}
.hero::after {
  content: ""; position: absolute; left: -15vw; bottom: -25vw; width: 55vw; height: 55vw;
  background: radial-gradient(closest-side, var(--blush-100), transparent 70%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { font-size: clamp(44px, 6.4vw, 82px); margin: 18px 0 22px; }
.hero-copy .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: 14.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note .icon { color: var(--red); width: 18px; height: 18px; }
.hero-note + .hero-note { margin-top: 8px; }
.hero-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 16px 34px -14px rgb(var(--shadow-rgb) / .55); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
}

/* Page heroes (inner pages) */
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.page-hero::before {
  content: ""; position: absolute; left: 50%; top: -40%; width: 110vw; height: 90vw; max-height: 900px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--blush-200), transparent 70%); z-index: -1;
}
.page-hero h1 { font-size: clamp(40px, 5.6vw, 68px); margin: 14px auto 18px; max-width: 900px; }
.page-hero .lead { max-width: 680px; margin: 0 auto; }

/* ---------- Phone mock-up ---------- */

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(330px, 86vw); aspect-ratio: 330 / 680;
  border-radius: 54px; padding: 12px;
  background: linear-gradient(145deg, #2b2526, #0c0a0b);
  box-shadow: 0 50px 80px -40px rgb(var(--shadow-rgb) / .6), 0 0 0 1px rgb(255 255 255 / .06) inset;
  transform: rotate(2deg);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 43px; overflow: hidden;
  background: #fbf7f6; color: #1f1a1b; font-family: -apple-system, var(--font-body);
  display: flex; flex-direction: column;
}
.phone-island { position: absolute; top: 11px; left: 50%; width: 96px; height: 28px; transform: translateX(-50%); background: #0c0a0b; border-radius: 20px; z-index: 2; }
.phone-status { display: flex; justify-content: space-between; padding: 15px 28px 0; font-size: 13px; font-weight: 600; height: 44px; }
.phone-status i { display: inline-block; width: 22px; height: 11px; border: 1.5px solid #1f1a1b; border-radius: 3px; position: relative; }
.phone-status i::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: #1f1a1b; border-radius: 1px; }
.phone-top { padding: 10px 18px 12px; }
.phone-top .back { color: #d92624; font-size: 13px; font-weight: 500; }
.phone-top h4 { font-family: -apple-system, var(--font-body); font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; color: #1f1a1b; }
.phone-chip { display: inline-block; margin-top: 7px; padding: 3px 9px; border-radius: 999px; background: #fde4e2; color: #b81d1c; font-size: 11.5px; font-weight: 600; }
.phone-seg { display: flex; margin: 0 16px 10px; padding: 2px; border-radius: 9px; background: #efe8e7; font-size: 11px; font-weight: 600; color: #5a5152; }
.phone-seg span { flex: 1; text-align: center; padding: 5px 0; border-radius: 7px; }
.phone-seg span:first-child { background: #fff; color: #1f1a1b; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.phone-list { flex: 1; overflow: hidden; padding: 0 12px; }
.phone-tabs {
  display: flex; justify-content: space-around; padding: 10px 18px 22px;
  border-top: 1px solid #efe8e7; background: rgb(255 255 255 / .85); color: #9a8f91;
}
.phone-tabs .icon { width: 22px; height: 22px; }
.phone-tabs .on { color: #d92624; }
.phone-day { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8a7f81; padding: 8px 6px 6px; }
:lang(ja) .phone-day { text-transform: none; }
.phone-card { background: #fff; border-radius: 14px; padding: 2px 0; margin-bottom: 8px; box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.phone-row { display: grid; grid-template-columns: 40px 30px 1fr; gap: 9px; align-items: start; padding: 9px 10px; }
.phone-row + .phone-row { border-top: 1px solid #f0e9e8; }
.phone-row time { font-size: 11.5px; font-weight: 700; text-align: right; padding-top: 7px; font-variant-numeric: tabular-nums; }
.phone-row b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.phone-row small { display: block; font-size: 11px; color: #7d7274; margin-top: 2px; line-height: 1.3; }
.kind { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.kind .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.k-flight { background: linear-gradient(160deg, #3d8bff, #0a64e0); }
.k-stay { background: linear-gradient(160deg, #b86bf0, #8d3fd0); }
.k-food { background: linear-gradient(160deg, #ff5a52, #e0302a); }
.k-activity { background: linear-gradient(160deg, #ff6aa2, #e63b7c); }
.k-train { background: linear-gradient(160deg, #39c96a, #1ea34c); }
.k-car { background: linear-gradient(160deg, #ffac3d, #f08700); }
.k-bus { background: linear-gradient(160deg, #44cfe8, #15a9c8); }
.k-map { background: linear-gradient(160deg, #3fd8b4, #10b08b); }
.k-ship { background: linear-gradient(160deg, #35c0b8, #149a92); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 16px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); font-size: 14px; font-weight: 600;
  box-shadow: 0 24px 40px -22px rgb(var(--shadow-rgb) / .45);
}
.float-card .icon { color: var(--red); }
.float-ai { left: max(-10px, calc(50% - 255px)); bottom: 16%; animation: floaty 7s ease-in-out infinite; }
.float-lock { right: max(-10px, calc(50% - 250px)); top: 15%; animation: floaty 8s ease-in-out -3s infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@media (max-width: 520px) { .float-card { display: none; } }

/* ---------- Highlights ---------- */

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 26px 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 26px 40px -30px rgb(var(--shadow-rgb) / .45); border-color: var(--line-strong); }
.card h3 { font-size: 22px; margin: 18px 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.badge-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red);
}
.badge-icon .icon { width: 24px; height: 24px; }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blush-300) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: var(--red); color: #fff; font: 600 22px var(--font-display);
  box-shadow: 0 0 0 8px var(--blush-100);
}
.step h3 { font-size: 23px; margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 320px; margin: 0 auto; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
}

/* ---------- Showcase rows ---------- */

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.showcase + .showcase { margin-top: clamp(72px, 9vw, 120px); }
.showcase.flip .showcase-art { order: -1; }
.showcase h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 12px 0 18px; }
.showcase p { color: var(--ink-2); font-size: 18px; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase.flip .showcase-art { order: 0; }
}

.showcase-art {
  position: relative; border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(150deg, var(--blush-100), var(--blush-200));
  min-height: 340px; display: grid; place-items: center; overflow: hidden;
}

/* Art 1: e-mail becoming plans */
.art-mail { width: 100%; max-width: 420px; display: grid; gap: 14px; }
.mail-card, .plan-mini {
  background: var(--card); border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 18px 30px -24px rgb(var(--shadow-rgb) / .5);
}
.mail-card { padding: 16px 18px; font-size: 13px; color: var(--muted); }
.mail-card .from { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.mail-card .from .icon { color: var(--red); }
.mail-card .ln { height: 8px; border-radius: 4px; background: var(--line); margin: 7px 0; }
.mail-card .ln.w70 { width: 70%; } .mail-card .ln.w45 { width: 45%; } .mail-card .ln.w85 { width: 85%; }
.mail-card mark { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--ink); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.art-arrow { justify-self: center; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--red); }
.art-arrow .icon { width: 18px; height: 18px; }
.plan-mini { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.plan-mini b { display: block; font-size: 14.5px; }
.plan-mini small { color: var(--muted); font-size: 12.5px; }
.plan-mini .kind { width: 34px; height: 34px; border-radius: 10px; }

/* Art 2: secure keypad */
.art-lock { text-align: center; color: var(--ink); }
.art-lock .lock-badge { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 20px 36px -18px rgb(var(--shadow-rgb) / .8); }
.art-lock .lock-badge .icon { width: 38px; height: 38px; }
.dots { display: flex; justify-content: center; gap: 14px; margin: 14px 0 22px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--red); }
.dots i.on { background: var(--red); }
.keypad { display: grid; grid-template-columns: repeat(3, 58px); gap: 12px; justify-content: center; }
.keypad span { height: 58px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--card) 80%, transparent); font: 500 22px var(--font-body); border: 1px solid var(--line); }
.keypad span.blank { visibility: hidden; }

/* Art 3: PDF page */
.art-pdf { position: relative; width: 100%; max-width: 360px; }
.pdf-page {
  background: #fff; color: #1f1a1b; border-radius: 10px; padding: 22px 22px 26px;
  box-shadow: 0 30px 50px -30px rgb(var(--shadow-rgb) / .6); transform: rotate(-2deg);
  font-family: var(--font-body);
}
.pdf-page.back { position: absolute; inset: 14px -14px -14px 14px; transform: rotate(3deg); background: #fff7f6; }
.pdf-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #d92624; padding-bottom: 12px; margin-bottom: 12px; }
.pdf-head small { color: #d92624; font-size: 9.5px; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; }
.pdf-head b { display: block; font: 700 19px var(--font-display); margin-top: 2px; }
.pdf-head img { width: 38px; height: 38px; border-radius: 9px; }
.pdf-day { color: #d92624; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; margin: 10px 0 6px; text-transform: uppercase; }
.pdf-row { display: grid; grid-template-columns: 34px 22px 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #eee; font-size: 11px; }
.pdf-row time { font-weight: 700; text-align: right; font-size: 10px; }
.pdf-row .kind { width: 22px; height: 22px; border-radius: 6px; }
.pdf-row .kind .icon { width: 12px; height: 12px; }
.pdf-row i { display: block; height: 6px; border-radius: 3px; background: #eee; width: 80%; margin-top: 4px; }

/* ---------- More features chips ---------- */

.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chip {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m);
  font-weight: 600; font-size: 16px;
}
.chip .icon { color: var(--red); width: 22px; height: 22px; }
.more-link { margin-top: 32px; display: flex; justify-content: center; }

/* ---------- Platforms ---------- */

.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.devices { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: clamp(14px, 2vw, 24px); color: var(--red); }
.device { display: grid; place-items: center; gap: 12px; color: var(--muted); font-weight: 600; font-size: 15px; }
.device .frame { display: grid; place-items: center; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 40px -30px rgb(var(--shadow-rgb) / .5); color: var(--red); }
.device .frame .icon { width: 44%; height: 44%; stroke-width: 1.5; }
.device.mac .frame, .device.windows .frame { width: 112px; height: 88px; }
.device.ipad .frame { width: 84px; height: 104px; }
.device.iphone .frame, .device.android .frame { width: 56px; height: 92px; }
.device .frame { border-radius: 20px; }
@media (max-width: 560px) {
  .devices { gap: 10px; }
  .device { font-size: 13px; gap: 8px; }
  .device .frame { border-radius: 14px; }
  .device.mac .frame, .device.windows .frame { width: 80px !important; height: 64px !important; }
  .device.ipad .frame { width: 62px !important; height: 76px !important; }
  .device.iphone .frame, .device.android .frame { width: 42px !important; height: 70px !important; }
}
@media (max-width: 820px) {
  .platforms { grid-template-columns: 1fr; text-align: center; }
  .device.mac .frame, .device.windows .frame { width: 104px; height: 82px; }
  .device.ipad .frame { width: 78px; height: 96px; }
  .device.iphone .frame, .device.android .frame { width: 52px; height: 86px; }
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 72px);
  background: radial-gradient(120% 140% at 0% 0%, #ff5e57 0%, #d92624 45%, #8f1515 100%);
  color: #fff; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 255 255 / .22), transparent);
}
.cta-band > img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 40px -18px rgb(0 0 0 / .5); }
.cta-band h2 { color: #fff; font-size: clamp(30px, 3.8vw, 46px); }
.cta-band p { margin: 10px 0 0; color: rgb(255 255 255 / .88); font-size: 18px; }
.cta-band .store-btn { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* ---------- Features page ---------- */

.features-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc h2 { font: 600 13px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a {
  display: block; padding: 7px 14px; margin-left: -2px; border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.35;
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--red); border-left-color: var(--red); font-weight: 600; }
@media (max-width: 960px) {
  .features-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .toc a { border: 1px solid var(--line-strong); border-radius: 999px; margin: 0; padding: 6px 14px; font-size: 14px; }
  .toc a.is-active { border-color: var(--red); }
}

.feature-section + .feature-section { margin-top: clamp(56px, 7vw, 88px); }
.feature-section header { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.feature-section header .badge-icon { width: 56px; height: 56px; border-radius: 16px; }
.feature-section header .badge-icon .icon { width: 28px; height: 28px; }
.feature-section h2 { font-size: clamp(28px, 3.2vw, 38px); }
.feature-section header p { margin: 4px 0 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 680px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  display: flex; gap: 16px; padding: 22px; border-radius: var(--radius-m);
  background: var(--card); border: 1px solid var(--line);
}
.feature .icon { color: var(--red); width: 24px; height: 24px; margin-top: 3px; }
.feature h3 { font: 600 17.5px/1.35 var(--font-body); letter-spacing: -.005em; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.feature.wide { grid-column: 1 / -1; }

/* ---------- How-To page ---------- */

.howto-note {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; margin-bottom: clamp(48px, 6vw, 72px);
  border-radius: var(--radius-m); background: var(--blush-100); border: 1px solid var(--line);
}
.howto-note > .icon { color: var(--red); width: 26px; height: 26px; flex: none; margin-top: 2px; }
.howto-note h2 { font: 600 17.5px/1.35 var(--font-body); margin-bottom: 4px; }
.howto-note p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.howto-tasks { display: grid; gap: 16px; }
.howto-task { padding: 24px 26px; border-radius: var(--radius-m); background: var(--card); border: 1px solid var(--line); }
.howto-task h3 { font: 600 19px/1.3 var(--font-body); letter-spacing: -.01em; margin-bottom: 14px; }
.howto-steps, .howto-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.howto-steps { counter-reset: hstep; }
.howto-steps li { counter-increment: hstep; position: relative; padding-left: 42px; min-height: 28px; }
.howto-steps li::before {
  content: counter(hstep); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red-soft); color: var(--red); font: 700 14px/1 var(--font-body);
}
.howto-list li { position: relative; padding-left: 22px; }
.howto-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.howto-steps + .howto-list { margin-top: 14px; }
.howto-task strong { color: var(--ink); font-weight: 600; }
.howto-tip {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px;
  border-radius: var(--radius-s); background: var(--blush-50); border-left: 3px solid var(--red);
}
.howto-tip .icon { color: var(--red); width: 20px; height: 20px; flex: none; margin-top: 2px; }
.howto-tip p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.howto-tip p > strong:first-child { color: var(--red); }
kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 6px; margin: 0 1px; border-radius: 6px; text-align: center;
  border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--card); color: var(--ink);
  font: 600 .86em/1.4 var(--font-body);
}
.howto-callout {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-l); background: var(--card); border: 1px solid var(--line);
}
.howto-callout .badge-icon { width: 56px; height: 56px; border-radius: 16px; }
.howto-callout h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 6px; }
.howto-callout p { margin: 0; color: var(--muted); }
.faq + .howto-callout { max-width: 820px; margin: clamp(40px, 5vw, 56px) auto 0; }
@media (max-width: 680px) {
  .howto-callout { grid-template-columns: 1fr; text-align: left; }
  .howto-task { padding: 20px 18px; }
}
.toc { max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }

/* Home art: Generate Itinerary and Settle Up */
.gen-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.gen-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--blush-100); color: var(--ink-2); }
.gen-chip.on { background: var(--red); color: #fff; }
.gen-chip .icon { width: 13px; height: 13px; }
.gen-pace { font-size: 12.5px; color: var(--muted); }
.avatars { display: flex; margin-top: 6px; }
.avatars i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--font-body); font-style: normal; color: #fff; border: 2px solid var(--card); margin-right: -8px; }
.avatars i:nth-child(1) { background: #d92624; } .avatars i:nth-child(2) { background: #3d8bff; } .avatars i:nth-child(3) { background: #1ea34c; }

/* ---------- Support page ---------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m);
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--line-strong); box-shadow: 0 20px 36px -30px rgb(var(--shadow-rgb) / .5); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--red); transition: transform .25s; margin-top: 2px; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-2); }
.faq .answer p { margin: 0; }

.contact-card {
  max-width: 820px; margin: clamp(48px, 6vw, 72px) auto 0; text-align: center;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-xl);
  background: linear-gradient(150deg, var(--blush-100), var(--blush-200));
}
.contact-card .badge-icon { margin: 0 auto 18px; width: 60px; height: 60px; border-radius: 18px; background: var(--card); }
.contact-card h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 10px; }
.contact-card p { color: var(--ink-2); margin-bottom: 24px; }
.contact-card .email { display: block; margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ---------- Privacy / prose ---------- */

.prose { max-width: 760px; margin: 0 auto; }
.prose .updated { text-align: center; color: var(--muted); font-size: 15px; margin-top: -8px; }
.prose section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-size: 26px; margin-bottom: 10px; }
.prose p { color: var(--ink-2); margin: 0; }
.prose .summary { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius-m); padding: 24px 26px; margin-top: 24px; }

/* ---------- 404 ---------- */

.not-found { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.not-found img { width: 110px; height: 110px; margin: 0 auto 28px; border-radius: 26px; transform: rotate(-8deg); box-shadow: 0 24px 44px -20px rgb(var(--shadow-rgb) / .55); }
.not-found h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 14px; }
.not-found p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--blush-50); margin-top: clamp(40px, 5vw, 64px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); max-width: 320px; margin-top: 14px; font-size: 15.5px; }
.site-footer h3 { font: 600 13px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; }
.site-footer ul a:hover { color: var(--red); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; color: var(--muted); font-size: 13.5px; }
.footer-bottom p { margin: 0; }
.footer-bottom .trademark { max-width: 720px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Scroll reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .hero-visual, .toc { display: none !important; }
  body { background: #fff; }
}

/* ---------- Download page ---------- */

.dl-icon { display: block; margin: 0 auto 18px; border-radius: 24px; box-shadow: 0 20px 40px -22px rgb(120 30 28 / .55); }
.dl-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 760px; margin: 0 auto; }
.dl-card {
  display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 28px;
  padding: 22px 28px; border-radius: 22px; background: var(--card);
  border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgb(0 0 0 / .35);
}
.dl-card .store-btn { width: 240px; justify-content: flex-start; }
.dl-card .store-btn strong { white-space: nowrap; }
.dl-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dl-for { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--ink-2); }
.dl-for .icon { display: inline-block; width: 17px; height: 17px; vertical-align: -3px; margin-right: 8px; color: var(--red); }
.dl-hint { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.dl-note { display: flex; gap: 10px; align-items: flex-start; max-width: 760px; margin: 36px auto 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.dl-note .icon { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--red); }
@media (max-width: 640px) {
  .dl-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; padding: 24px 18px; }
  .dl-text { align-items: center; }
}

/* ---------- Preview page: video thumbnail and pop-up player ---------- */
.video-feature { margin: 0 auto; max-width: 1040px; }
.video-thumb {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius-l); overflow: hidden; background: var(--blush-100);
  box-shadow: 0 30px 60px -28px rgb(var(--shadow-rgb) / .55), 0 0 0 1px var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.video-thumb img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: rgb(40 8 8 / 0); transition: background .25s; }
.video-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: clamp(68px, 9vw, 104px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 34px -10px rgb(var(--shadow-rgb) / .8), 0 0 0 8px rgb(255 255 255 / .55);
  transition: transform .25s ease, background .25s;
}
.video-play .icon { width: 42%; height: 42%; margin-left: 8%; fill: currentColor; }
.video-thumb:hover, .video-thumb:focus-visible { transform: translateY(-3px); box-shadow: 0 38px 70px -28px rgb(var(--shadow-rgb) / .6), 0 0 0 1px var(--line-strong); }
.video-thumb:hover img { transform: scale(1.02); }
.video-thumb:hover::after { background: rgb(40 8 8 / .08); }
.video-thumb:hover .video-play, .video-thumb:focus-visible .video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--red-strong); }
.video-thumb:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.video-feature figcaption {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center;
  margin-top: 22px; color: var(--muted); font-size: 15px;
}
.video-duration { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--red); }
.video-duration .icon { width: 16px; height: 16px; fill: currentColor; }
.video-note { display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; margin: 10px auto 0; max-width: 640px; color: var(--muted); font-size: 14px; }
.video-note .icon { width: 18px; height: 18px; flex: none; }

.video-dialog {
  width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: none; padding: 0; border: 0;
  background: transparent; overflow: visible; margin: auto;
}
.video-dialog::backdrop { background: rgb(20 6 6 / .82); backdrop-filter: blur(4px); }
.video-dialog[open] { animation: video-in .25s ease; }
@keyframes video-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.video-dialog-inner { position: relative; }
.video-dialog video {
  display: block; width: 100%; height: auto; max-height: calc(100vh - 120px); aspect-ratio: 16 / 9;
  border-radius: var(--radius-m); background: #000; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .7);
}
.video-close {
  position: absolute; right: 0; top: -54px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgb(255 255 255 / .14); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .2s;
}
.video-close:hover, .video-close:focus-visible { background: var(--red); }
.video-close .icon { width: 22px; height: 22px; }
body.video-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .video-thumb, .video-thumb img, .video-play, .video-dialog[open] { transition: none; animation: none; }
}
/* "Coming soon" under the Android and Windows device lines: same size and colour, lined up with the text. */
.dl-for.dl-soon { margin-left: 25px; }
.device.watch .frame { width: 64px; height: 78px; border-radius: 22px; }
