/* MyDestinations website. The app's own palette: tangerine on cream and peach, warm ink,
   serif titles. System fonts only, so the site loads nothing from anyone else. */

:root {
  --accent: #EC6A22;
  --accent-text: #B4501A;
  --on-accent: #FFFFFF;
  --ink: #2B1C14;
  --ink-2: rgba(43, 28, 20, 0.72);
  --ink-3: rgba(43, 28, 20, 0.5);
  --bg: #FFF9F2;
  --peach: #FFF0E3;
  --peach-deep: #FFDEC2;
  --card: #FFFFFF;
  --line: rgba(43, 28, 20, 0.1);
  --tint: rgba(236, 106, 34, 0.12);
  --band: #2B1C14;
  --band-ink: #FFF3E8;
  --band-ink-2: rgba(255, 243, 232, 0.7);
  --sunrise: linear-gradient(180deg, #FFF9F2 0%, #FFF0E3 55%, #FFDEC2 100%);
  --glow: rgba(236, 106, 34, 0.3);

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 24px;
  --gutter: 24px;

  color-scheme: light dark;
}

/* Dark: near-black and neutral, as the app's own dark mode is; tangerine only for accents. */
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #FF8F4A;
    --accent-text: #FF9E62;
    --on-accent: #111111;
    --ink: #F5F5F7;
    --ink-2: rgba(245, 245, 247, 0.72);
    --ink-3: rgba(245, 245, 247, 0.5);
    --bg: #0A0A0A;
    --peach: #111111;
    --peach-deep: #111111;
    --card: #1C1C1E;
    --line: rgba(255, 255, 255, 0.09);
    --tint: rgba(255, 143, 74, 0.14);
    --band: #000000;
    --band-ink: #F5F5F7;
    --band-ink-2: rgba(245, 245, 247, 0.68);
    --sunrise: #111111;
    --glow: rgba(255, 143, 74, 0.06);
  }
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 8px 14px; border-radius: 10px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */

.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header--over { position: absolute; inset: 0 0 auto; z-index: 3; color: #FFFFFF; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
  font: 700 1.25rem/1 var(--serif);
}
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }

.nav { display: flex; align-items: center; gap: 26px; font-size: 0.97rem; }
.nav a { color: inherit; text-decoration: none; opacity: 0.86; }
.nav a:hover { opacity: 1; }
.nav .nav-link[aria-current="page"] { opacity: 1; font-weight: 600; }

/* Buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px;
  border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font: 600 1.0625rem/1 var(--sans);
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(236, 106, 34, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(236, 106, 34, 0.75); }
.button--small { min-height: 40px; padding: 0 18px; font-size: 0.94rem; box-shadow: none; }
.nav .button { opacity: 1; color: var(--on-accent); }

.meta { font-size: 0.9rem; color: var(--ink-3); }
.meta span { white-space: nowrap; }

/* Hero: the welcome screen's photograph, edge to edge */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(94vh, 920px);
  display: grid; place-items: center;
  padding: 120px 0 88px;
  color: #FFFFFF; text-align: center;
  background: #6B3A22;
}
.hero-photo, .hero-photo img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 58% 42% at 50% 50%, rgba(28, 12, 4, 0.42), rgba(28, 12, 4, 0) 72%),
    linear-gradient(180deg, rgba(28, 12, 4, 0.38) 0%, rgba(28, 12, 4, 0) 24%, rgba(28, 12, 4, 0) 68%, rgba(28, 12, 4, 0.5) 100%);
}
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 5.5rem);
  line-height: 1.02;
  text-shadow: 0 2px 30px rgba(40, 16, 4, 0.35);
}
.hero .lede {
  max-width: 36ch; margin: 22px auto 0;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 14px rgba(40, 16, 4, 0.4);
}
.hero .actions { margin-top: 34px; display: grid; justify-items: center; gap: 14px; }
.hero .meta { color: rgba(255, 255, 255, 0.86); text-shadow: 0 1px 10px rgba(40, 16, 4, 0.45); }
.hero .button { --on-accent: #FFFFFF; background: #EC6A22; }

/* Sections */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 640px; }
.section-head p { margin-top: 16px; font-size: 1.15rem; color: var(--ink-2); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.sunrise { position: relative; isolation: isolate; background: var(--sunrise); overflow: hidden; }
.sunrise::after {
  content: ""; position: absolute; z-index: -1;
  left: 50%; bottom: -380px; width: 900px; height: 760px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
}

/* Three steps */

.steps-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.step-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 26px; }
.step-list li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.step-list .num {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font: 700 1.15rem/1 var(--serif);
}
.step-list h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.step-list p { margin-top: 4px; color: var(--ink-2); }
.after { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-2); max-width: 46ch; }

/* Features: words beside a screen */

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature + .feature { margin-top: clamp(96px, 12vw, 150px); }
.feature--flip .feature-text { order: 2; }
.feature-text { max-width: 480px; }
.feature--flip .feature-text { justify-self: end; }
.feature-text p { margin-top: 18px; font-size: 1.125rem; color: var(--ink-2); }

.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: translateY(-50%) rotate(-45deg); transform-origin: center;
  border-radius: 1px;
}

/* A phone, showing a screenshot from screenshots/ (and screenshots/dark/ in dark mode). The
   images load as they come near the screen, so the page's first load is the hero alone. */

.phone {
  position: relative;
  width: min(300px, 72vw); aspect-ratio: 1206 / 2622;
  margin: 0 auto; padding: 10px;
  border-radius: 52px;
  background: linear-gradient(150deg, #43362E, #120D0A 60%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 40px 80px -30px rgba(110, 50, 10, 0.45),
    0 18px 30px -18px rgba(0, 0, 0, 0.35);
}
.screen {
  display: block; height: 100%;
  border-radius: 42px; overflow: hidden;
  background: linear-gradient(180deg, #FFF9F2 0%, #FFEBDC 100%);
}
.screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Dark mode: no warm glows, and the phones' frames graphite like the app's dark screens. */
@media (prefers-color-scheme: dark) {
  .phone {
    background: linear-gradient(150deg, #3A3A3C, #0B0B0C 60%);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      inset 0 0 0 1.5px rgba(255, 255, 255, 0.06),
      0 40px 80px -30px rgba(0, 0, 0, 0.8);
  }
  .button { box-shadow: none; }
  .button:hover { box-shadow: none; }
  .plan--pro { box-shadow: none; }
  .summary, .contact-card { background: var(--card); }
  .screen { background: linear-gradient(180deg, #1C1C1E 0%, #0B0B0C 100%); }
}

/* Everything else, as tiles */

.tiles {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px;
}
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 24px; }
.tile .ico {
  width: 40px; height: 40px; padding: 9px; margin-bottom: 14px;
  border-radius: 50%; background: var(--tint); color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.tile p { margin-top: 4px; font-size: 0.97rem; color: var(--ink-2); }

/* Privacy */

.band { background: var(--band); color: var(--band-ink); }
.band .section-head p { color: var(--band-ink-2); }
.promises {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px;
}
.promises h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #FFB27F; }
.promises p { margin-top: 8px; color: var(--band-ink-2); }
.band .more { margin-top: 52px; }
.band .more a { color: #FFB27F; font-weight: 600; }

/* Pricing */

.plans {
  margin: 52px auto 0; max-width: 860px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch;
}
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px 32px; text-align: left;
  display: flex; flex-direction: column;
}
.plan--pro { border: 2px solid var(--accent); box-shadow: 0 30px 60px -36px rgba(236, 106, 34, 0.55); }
.plan .label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.plan .price { margin-top: 12px; font: 700 2.4rem/1.05 var(--serif); }
.plan .price small { font: 400 1rem var(--sans); color: var(--ink-2); }
.plan .alt { margin-top: 6px; color: var(--ink-2); }
.plan .ticks { margin-top: 24px; }
.footnote { margin-top: 22px; font-size: 0.9rem; color: var(--ink-3); }

/* Closing call */

.closing { text-align: center; }
.closing h1, .closing h2 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); }
.closing p { margin: 16px auto 0; max-width: 40ch; color: var(--ink-2); font-size: 1.125rem; }
.closing .actions { margin-top: 32px; display: grid; justify-items: center; gap: 14px; }

/* Footer */

.site-footer { padding: 56px 0 64px; border-top: 1px solid var(--line); font-size: 0.94rem; color: var(--ink-2); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
.site-footer .brand { color: var(--ink); }
.site-footer .tagline { margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.legal { grid-column: 1 / -1; font-size: 0.82rem; color: var(--ink-3); }

/* Text pages: privacy, support, terms */

.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 3.6rem); }
.page-head .lede { margin-top: 16px; font-size: 1.2rem; color: var(--ink-2); max-width: 40ch; }
.page-head .meta { margin-top: 14px; }

.doc { max-width: 760px; padding-bottom: 96px; }
.doc h2 { margin-top: 64px; font-size: clamp(1.6rem, 3vw, 2rem); }
.doc h3 { margin-top: 32px; }
.doc p, .doc ul { margin-top: 14px; color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }

.summary {
  margin-top: 40px; padding: 28px 30px;
  background: var(--sunrise); border: 1px solid var(--line); border-radius: var(--radius);
}
.summary h2 { margin-top: 0; font-size: 1.5rem; }
.summary .ticks { margin-top: 18px; }

.flows { margin-top: 22px; display: grid; gap: 12px; }
.flow { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.flow h3 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.flow dl { margin: 10px 0 0; display: grid; grid-template-columns: 74px 1fr; gap: 6px 14px; }
.flow dt { font-size: 0.88rem; font-weight: 600; color: var(--ink-3); padding-top: 0.12em; }
.flow dd { margin: 0; color: var(--ink-2); }

.contact-card {
  margin-top: 40px; padding: 30px 32px;
  background: var(--sunrise); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.contact-card h2 { margin: 0; font-size: 1.6rem; }
.contact-card p { margin-top: 6px; color: var(--ink-2); }

.faq { margin-top: 22px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 2px;
  font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq .answer { padding: 0 2px 22px; }
.faq .answer p:first-child, .faq .answer ul:first-child { margin-top: 0; }

/* Narrow screens */

@media (max-width: 900px) {
  .steps-grid, .feature { grid-template-columns: 1fr; gap: 48px; }
  .feature--flip .feature-text { order: 0; justify-self: start; }
  .feature-text { max-width: none; }
  .promises { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 1rem; }
  .nav .nav-link { display: none; }
  .hero { min-height: 100svh; align-items: end; padding: 120px 0 64px; }
  .hero-photo img { object-position: 50% 50%; }
  .hero::before {
    background:
      radial-gradient(ellipse 90% 40% at 50% 62%, rgba(28, 12, 4, 0.4), rgba(28, 12, 4, 0) 72%),
      linear-gradient(180deg, rgba(28, 12, 4, 0.35) 0%, rgba(28, 12, 4, 0) 20%, rgba(28, 12, 4, 0) 45%, rgba(28, 12, 4, 0.62) 100%);
  }
  .promises, .plans { grid-template-columns: 1fr; }
  .promises { gap: 30px; }
  .plan { padding: 28px 24px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .flow dl { grid-template-columns: 1fr; gap: 2px; }
  .flow dd + dt { margin-top: 8px; }
  .contact-card { padding: 26px 24px; }
}

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