/* DIY Port Days — marketing site shared styles.
   Tokens match the app's brand for cross-surface consistency:
   - Ocean (deep navy):  #1B4F72
   - Sand / gold:        #D4A843
   - Cream:              #FAF6EC
   - Body text dark:     #1F2937
   Fonts: Playfair Display (heads), Lato (body) — same as the app + PDFs. */

:root {
  --ocean:        #1B4F72;
  --ocean-light:  #2C6B96;
  --ocean-deep:   #0F2A40;  /* exact match to the corner of icon-512.png */
  --sand:         #D4A843;
  --sand-deep:    #B8922E;
  --cream:        #FAF6EC;
  --paper:        #FFFFFF;
  --ink:          #1F2937;
  --ink-soft:     #4B5563;
  --hairline:     #E5E9EE;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.05);
  --shadow-md:    0 6px 20px rgba(0,0,0,0.08);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    22px;
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--ocean-light); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ocean); margin: 0 0 12px; }
h1 { font-size: 2.6rem; line-height: 1.15; font-weight: 700; }
h2 { font-size: 2rem; line-height: 1.2; font-weight: 700; }
h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 700; }
@media (max-width: 720px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* ─────────── NAV ─────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--ocean-deep);  /* matches the exact corner color of icon-512.png so the logo blends seamlessly */
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.site-nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand-link {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
  color: white;
}
.brand-link:hover { color: white; text-decoration: none; }
.brand-link img { width: 52px; height: 52px; border-radius: 10px; }
.brand-link span.tag { color: white; }
.brand-link span.tag em { color: var(--sand); font-style: normal; }
.nav-links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.88); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--sand); text-decoration: none; }
.nav-links a.cta {
  background: var(--sand); color: var(--ocean);
  padding: 8px 18px; border-radius: 999px;
  font-weight: 700;
}
.nav-links a.cta:hover { background: var(--sand-deep); color: white; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: white; }

/* Ports dropdown — uses <details>/<summary> for accessibility; overlay on
   desktop, inline expansion on mobile (handled in the @media block below). */
.nav-dropdown { position: relative; }
.nav-dropdown summary {
  list-style: none; cursor: pointer;
  color: rgba(255,255,255,0.88);
  font-weight: 600; font-size: 0.95rem;
  padding-right: 4px;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after {
  content: '\25BE'; /* ▾ */
  margin-left: 6px; font-size: 0.85em;
  display: inline-block; transition: transform 0.15s;
}
.nav-dropdown[open] summary::after { transform: rotate(180deg); }
.nav-dropdown summary:hover { color: var(--sand); }
.nav-submenu {
  list-style: none; margin: 0; padding: 6px 0;
  position: absolute; top: calc(100% + 10px); left: -8px;
  min-width: 180px;
  background: var(--ocean-deep);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.nav-submenu li { display: block; }
.nav-submenu a {
  display: block; padding: 8px 16px; width: auto;
}
.nav-submenu a:hover { background: rgba(255,255,255,0.06); }

/* Secondary nav link — quieter than the primary App Store CTA */
.nav-links a.nav-secondary {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a.nav-secondary:hover { color: var(--sand); }

@media (max-width: 800px) {
  .menu-toggle { display: block; margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ocean-deep);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 20px; width: 100%; color: rgba(255,255,255,0.88); }
  .nav-links a:hover { background: rgba(255,255,255,0.06); }
  .nav-links a.cta { margin: 8px 20px; width: auto; text-align: center; }
  /* On mobile the dropdown expands inline inside the hamburger column */
  .nav-dropdown { width: 100%; }
  .nav-dropdown summary { padding: 12px 20px; }
  .nav-submenu {
    position: static; min-width: 0;
    background: rgba(255,255,255,0.04);
    border: 0; border-radius: 0; box-shadow: none;
    padding: 4px 0 8px;
  }
  .nav-submenu a { padding: 10px 36px; font-size: 0.9rem; }
}

/* ─────────── HERO ─────────── */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  background: var(--ocean);
  overflow: hidden;
  color: white;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1548574505-5e239809ee19?w=1920&q=80');
  background-size: cover; background-position: center 40%;
  filter: brightness(0.55);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,79,114,0.45) 0%, rgba(27,79,114,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 1000px; margin: 0 auto;
  padding: 100px 20px 80px; text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--sand); color: var(--ocean);
  padding: 6px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  color: white;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero h1 em { color: var(--sand); font-style: normal; }
.hero-sub {
  font-size: 1.15rem; line-height: 1.55;
  max-width: 640px; margin: 0 auto 32px;
  color: rgba(255,255,255,0.92);
}
.hero-ctas {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; margin-bottom: 24px;
}
.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px 30px;
  font-size: 0.9rem; color: rgba(255,255,255,0.85);
}
.hero-trust strong { color: white; }
/* Microcopy under the App Store badge — "Free on the App Store · Android coming soon" */
.hero-micro {
  margin: 24px 0 28px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  letter-spacing: 0.3px;
}
/* Quiet alternative-path link beneath the trust strip */
.hero-alt-link {
  margin-top: 24px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.hero-alt-link a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-alt-link a:hover { color: var(--sand); }
/* Same microcopy line, used in bottom CTA blocks (lighter background) */
.cta-micro {
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
}

/* ─────────── BUTTONS ─────────── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn-gold {
  background: linear-gradient(135deg, var(--sand) 0%, var(--sand-deep) 100%);
  color: white;
}
.btn-ocean {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-light) 100%);
  color: white;
}
.btn-outline {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: white; }
.btn-secondary {
  background: white; color: var(--ocean);
  border: 2px solid var(--ocean);
}

/* ─────────── STORE BADGES ─────────── */
.store-badges {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.store-badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  background: black; color: white;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  min-width: 180px;
}
a.store-badge:hover { background: #222; color: white; text-decoration: none; }
.store-badge .store-badge-icon { font-size: 1.8rem; line-height: 1; }
.store-badge .store-badge-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.store-badge .store-badge-text small { font-size: 0.7rem; opacity: 0.85; }
.store-badge .store-badge-text strong { font-size: 1.05rem; font-weight: 600; }
/* Coming-soon variant: no hover, no link cursor, slightly muted, gold pill above. */
.store-badge.coming-soon {
  cursor: default;
  opacity: 0.85;
}
.store-badge.coming-soon:hover { background: black; color: white; }
.store-badge.coming-soon::after {
  content: 'COMING SOON';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sand); color: var(--ocean);
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.5px;
  padding: 3px 10px; border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ─────────── SECTIONS ─────────── */
section { padding: 70px 0; }
section.tight { padding: 50px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-head .kicker {
  display: inline-block;
  color: var(--sand-deep); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px;
}
/* text-wrap: balance prevents orphans (single short word on the last line) by
   letting the browser redistribute words across lines. Falls back gracefully
   in older browsers (just renders as before). */
.section-head h2,
.hero h1,
.port-cta-block h2 { text-wrap: balance; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.gold-rule {
  width: 60px; height: 3px;
  background: var(--sand);
  margin: 16px auto;
}

/* ─────────── CARD GRIDS ─────────── */
.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
}
.card-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--ocean); color: var(--sand);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ─────────── PORT GRID ─────────── */
.port-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.port-tile {
  position: relative;
  display: block;
  background: white;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.port-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.port-tile-img {
  height: 160px;
  background-size: cover; background-position: center;
  background-color: var(--ocean);
}
.port-tile-body { padding: 16px 18px; }
.port-tile-body .region { color: var(--sand-deep); font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.port-tile-body h3 { font-size: 1.2rem; margin: 4px 0; color: var(--ocean); }
.port-tile-body .stats { color: var(--ink-soft); font-size: 0.85rem; }
.port-tile-body .arrow { color: var(--sand-deep); font-weight: 700; }

/* ─────────── PRICING ─────────── */
.pricing-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 980px; margin: 0 auto;
}
.price-card {
  background: white; border: 2px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
}
.price-card.popular { border-color: var(--sand); box-shadow: var(--shadow-md); }
.price-card .price-kicker { color: var(--sand-deep); font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; }
.price-card h3 { font-size: 1.5rem; margin: 8px 0; }
.price-card .price { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--ocean); margin: 8px 0; }
.price-card .price small { font-size: 1rem; font-weight: 400; color: var(--ink-soft); }
.price-card ul { list-style: none; padding: 0; margin: 16px 0; text-align: left; }
.price-card ul li { padding: 6px 0 6px 24px; position: relative; font-size: 0.95rem; color: var(--ink); }
.price-card ul li::before { content: '\2713'; position: absolute; left: 0; color: var(--sand-deep); font-weight: 700; }

/* ─────────── PORT-PAGE SPECIFIC ─────────── */
.port-hero {
  background: var(--ocean); color: white;
  padding: 60px 20px 40px;
  text-align: center;
}
.port-hero .kicker { color: var(--sand); font-weight: 700; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; }
.port-hero h1 { color: white; margin: 8px 0; font-size: clamp(2rem, 5vw, 2.8rem); }
.port-hero .sub { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.port-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  max-width: 800px; margin: 24px auto 0;
}
.port-stats .stat { padding: 8px 16px; }
.port-stats .stat .label { font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sand); font-weight: 700; }
.port-stats .stat .value { font-family: var(--font-head); font-size: 1.4rem; color: white; }
.port-highlights {
  list-style: none; padding: 0; max-width: 700px; margin: 0 auto;
}
.port-highlights li {
  padding: 14px 18px 14px 50px;
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.port-highlights li::before {
  content: '\2713'; position: absolute; left: 18px; top: 14px;
  color: var(--sand-deep); font-weight: 700; font-size: 1.2rem;
}
.port-cta-block {
  background: var(--cream);
  padding: 50px 20px;
  text-align: center;
}
.port-cta-block h2 { margin-bottom: 14px; }
.port-cta-block p { color: var(--ink-soft); max-width: 600px; margin: 0 auto 24px; }

/* ─────────── FOUNDER NOTE ─────────── */
.founder-note {
  max-width: 720px; margin: 0 auto;
  font-size: 1.08rem; line-height: 1.75;
  color: var(--ink);
}
.founder-note p { margin-bottom: 20px; }
.founder-note p:first-of-type { margin-top: 8px; }
.founder-note em { color: var(--ocean); font-style: italic; }
.founder-sig {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ocean);
  margin-top: 30px !important;
  margin-bottom: 0 !important;
  text-align: right;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}

/* ─────────── FAQ ─────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-section-title {
  max-width: 760px; margin: 38px auto 14px;
  font-family: var(--font-head);
  color: var(--ocean); font-size: 1.35rem; font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--sand);
}
.faq-section-title:first-of-type { margin-top: 0; }
.faq-item {
  background: white; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  margin-bottom: 10px; padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--ocean);
  list-style: none; position: relative; padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '\002B'; position: absolute; right: 0; top: 0;
  font-size: 1.4rem; color: var(--sand-deep); font-weight: 700;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 12px 0 0; color: var(--ink-soft); }
.faq-item p + p { margin-top: 10px; }

/* ─────────── FOOTER ─────────── */
.site-foot {
  background: var(--ocean); color: rgba(255,255,255,0.85);
  padding: 50px 20px 30px;
}
.site-foot .container { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-foot h4 { color: var(--sand); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.site-foot a { color: rgba(255,255,255,0.85); display: block; padding: 4px 0; }
.site-foot a:hover { color: var(--sand); text-decoration: none; }
.site-foot .copyright {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 30px; padding-top: 20px;
  text-align: center; font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ─────────── PROSE PAGES (privacy, terms, about) ─────────── */
.prose {
  max-width: 760px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.7;
}
.prose h1 { margin-bottom: 8px; }
.prose .effective { color: var(--ink-soft); font-style: italic; margin-bottom: 30px; }
.prose h2 { margin-top: 36px; font-size: 1.4rem; }
.prose ul, .prose ol { padding-left: 24px; }
.prose ul li { padding: 4px 0; }
.prose blockquote {
  border-left: 4px solid var(--sand);
  padding: 8px 16px; margin: 18px 0;
  background: var(--cream);
  font-style: italic;
}
