/* Mochi — shared site styles (home, island pages, Premium).
   Palette: Hāmākua Rainforest — forest green ink, plumeria yellow, ʻōhiʻa red. */
:root {
  --paper: #F8F7F1;
  --ink: #0F1A14;
  --slate: #17261D;
  --graphite: #24382B;
  --sage: #6FCF7F;
  --sage-soft: #8FD99F;
  --sand: #F5C542;
  --ember: #E0533D;
  --paper-text: #F2F0E6;
  --fog-text: #C3CDBF;
  --mist: #8FA08F;

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --bg: var(--ink);
  --surface-1: var(--slate);
  --surface-2: var(--graphite);
  --text: var(--paper-text);
  --text-muted: var(--fog-text);
  --text-faint: var(--mist);
  --border: #24382B;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 23px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: var(--sand); color: var(--ink); }
img { max-width: 100%; }

/* ----- type ----- */
.display-xl { font-family: var(--serif); font-weight: 900; font-size: 40px; line-height: 46px; letter-spacing: -0.025em; }
.display-lg { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 36px; letter-spacing: -0.015em; }
.lede-serif { font-family: var(--serif); font-style: italic; color: var(--text-muted); font-size: 20px; line-height: 30px; }
.mono-sm { font-family: var(--mono); font-size: 12px; line-height: 16px; }
.eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: 11px; line-height: 16px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-soft); margin: 0 0 16px;
}
@media (min-width: 720px) {
  .display-xl { font-size: 64px; line-height: 70px; }
  .display-lg { font-size: 44px; line-height: 50px; }
  .lede-serif { font-size: 22px; line-height: 32px; }
}
@media (min-width: 1080px) {
  .display-xl { font-size: 88px; line-height: 92px; }
  .display-lg { font-size: 52px; line-height: 58px; }
}

/* ----- layout ----- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
@media (min-width: 720px) { .container { padding: 0 48px; } }
section { padding: 80px 0; }
@media (min-width: 720px) { section { padding: 112px 0; } }
.band { background: var(--surface-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 60ch; margin: 0 0 48px; }
.section-head h2 { margin: 0 0 16px; }
.section-head p { margin: 0; color: var(--text-muted); font-size: 17px; line-height: 26px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ----- nav ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; line-height: 1;
}
.brand-chip { display: block; width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: none; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  color: var(--text-muted); font-size: 14px; font-weight: 500;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); background: var(--surface-1); }
@media (min-width: 720px) { .nav-link { display: inline-block; } }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px;
  border-radius: 12px; background: var(--sand); color: var(--ink); font-family: var(--serif);
  font-size: 15px; text-decoration: none; margin-left: 8px;
}
.nav-cta:hover { opacity: 0.88; }
.island-strip { border-top: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.island-strip::-webkit-scrollbar { display: none; }
.island-strip-inner { display: flex; gap: 6px; padding-top: 8px; padding-bottom: 8px; white-space: nowrap; }
.island-strip a {
  padding: 6px 12px; border-radius: var(--r-pill); text-decoration: none; font-size: 13px;
  color: var(--text-muted); border: 1px solid var(--border);
}
.island-strip a:hover, .island-strip a[aria-current="page"] { color: var(--ink); background: var(--sand); border-color: var(--sand); }

/* ----- buttons ----- */
.store-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 60px; padding: 0 28px; border-radius: 16px; border: 0; text-decoration: none;
  font-family: var(--serif); font-size: 18px; cursor: pointer; transition: opacity 160ms ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--sand); color: var(--ink); }
.btn--primary:hover { opacity: 0.88; }
.btn--secondary { background: transparent; color: var(--text); border: 1px solid color-mix(in srgb, var(--text) 50%, transparent); }
.btn--secondary:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.btn .small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; display: block; line-height: 1; margin-bottom: 3px; font-family: var(--sans); font-weight: 500; }
.btn .large { font-family: var(--serif); font-size: 19px; line-height: 1.1; }
.text-link { color: var(--sand); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; }

/* ----- hero ----- */
.hero { padding: 72px 0 64px; }
@media (min-width: 720px) { .hero { padding: 120px 0 96px; } }
.hero-grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.hero-logo-mark { display: block; width: 150px; height: auto; border-radius: 28px; margin: 0 auto 8px; }
@media (min-width: 720px) { .hero-logo-mark { width: 200px; border-radius: 36px; } }
.hero h1 { margin: 0; max-width: 18ch; }
.hero .lede-serif { max-width: 38ch; margin: 0 0 16px; }
.hero .store-row { justify-content: center; }

.statement { padding: 64px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.statement p { max-width: 56ch; margin: 0 auto; text-align: center; }

/* ----- features ----- */
.pillars-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 720px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (min-width: 1080px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }
.pillar { padding-top: 28px; border-top: 1px solid var(--border); }
.pillar-glyph { display: block; width: 32px; height: 32px; margin-bottom: 20px; color: var(--sage); }
.pillar h3 { font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 32px; margin: 0 0 12px; }
.pillar p { margin: 0; color: var(--text-muted); max-width: 34ch; }
.tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: var(--r-pill);
  font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  vertical-align: middle; position: relative; top: -2px;
}
.tag--free { background: color-mix(in srgb, var(--sage) 18%, transparent); color: var(--sage-soft); }
.tag--premium { background: color-mix(in srgb, var(--sand) 18%, transparent); color: var(--sand); }

/* ----- island cards (home) ----- */
.island-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .island-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1080px) { .island-grid { grid-template-columns: repeat(3, 1fr); } }
.island-card {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface-1); text-decoration: none; color: var(--text);
  transition: border-color 160ms ease, transform 160ms ease;
}
.island-card:hover { border-color: var(--sand); transform: translateY(-2px); }
.island-card h3 { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 34px; margin: 0; }
.island-card .sub { color: var(--text-faint); font-size: 13px; margin: -4px 0 0; }
.island-card p { margin: 0; color: var(--text-muted); }
.island-card .meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; color: var(--text-faint); font-size: 13px; }
.island-card .meta .go { color: var(--sand); }

/* ----- screenshots ----- */
.device-row { display: grid; grid-template-columns: 1fr; gap: 48px; justify-items: center; }
@media (min-width: 880px) { .device-row { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.device { width: 100%; max-width: 270px; aspect-ratio: 9 / 19.5; border-radius: 36px; background: #0a0a08; padding: 10px; border: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5); }
.device-inner { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: var(--ink); }
.device-inner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.device-label { margin-top: 18px; text-align: center; color: var(--text-faint); letter-spacing: 0.18em; font-size: 11px; text-transform: uppercase; }

/* ----- free vs premium ----- */
.compare { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 820px) { .compare { grid-template-columns: 1fr 1fr; } }
.plan { padding: 32px; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--bg); }
.plan--premium { border-color: color-mix(in srgb, var(--sand) 55%, var(--border)); }
.plan h3 { font-family: var(--serif); font-size: 28px; line-height: 34px; margin: 0 0 6px; }
.plan .price { font-family: var(--serif); font-size: 44px; line-height: 48px; letter-spacing: -0.02em; margin: 14px 0 4px; }
.plan .price-note { color: var(--text-faint); font-size: 13px; margin: 0 0 20px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 11px 0 11px 28px; border-top: 1px solid var(--border); color: var(--text-muted); position: relative; }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.plan--premium .checklist li::before { border-color: var(--sand); }

.price-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.price-table th, .price-table td { text-align: left; padding: 16px 0; border-top: 1px solid var(--border); vertical-align: top; }
.price-table th { font-family: var(--serif); font-weight: 700; font-size: 19px; }
.price-table td { color: var(--text-muted); }
.price-table td.amt { text-align: right; font-family: var(--serif); font-size: 22px; color: var(--text); white-space: nowrap; }

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 19px; line-height: 26px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--sand); font-family: var(--sans); font-size: 22px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--text-muted); margin: 12px 0 0; max-width: 64ch; }

/* ----- island page ----- */
.island-hero { padding: 64px 0 48px; }
@media (min-width: 720px) { .island-hero { padding: 96px 0 64px; } }
.island-hero h1 { margin: 0 0 6px; }
.island-hero .sub { color: var(--text-faint); font-size: 15px; margin: 0 0 28px; }
.island-hero .intro { font-family: var(--serif); font-size: 19px; line-height: 30px; color: var(--text-muted); max-width: 62ch; margin: 0; }
@media (min-width: 720px) { .island-hero .intro { font-size: 21px; line-height: 33px; } }
.stats { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.stat .n { font-family: var(--serif); font-size: 32px; line-height: 36px; display: block; }
.stat .l { color: var(--text-faint); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

.guide-card { padding: 32px; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--bg); }
@media (min-width: 720px) { .guide-card { padding: 48px; } }
.guide-card h3 { font-family: var(--serif); font-size: 30px; line-height: 36px; margin: 0 0 20px; }
.guide-card h4 { font-family: var(--serif); font-size: 21px; margin: 32px 0 12px; }
.guide-card p { color: var(--text-muted); font-size: 16px; line-height: 26px; margin: 0 0 16px; max-width: 66ch; }
.guide-card ul { padding-left: 20px; margin: 0; color: var(--text-muted); max-width: 66ch; }
.guide-card li { margin-bottom: 10px; font-size: 16px; line-height: 25px; }
.guide-card li strong { color: var(--text); font-weight: 600; }
.sources { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; line-height: 19px; color: var(--text-faint); }
.sources a { color: var(--text-faint); }

.place-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 880px) { .place-list { grid-template-columns: 1fr 1fr; gap: 20px; } }
.place { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface-1); display: flex; flex-direction: column; }
.place .region { color: var(--text-faint); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }
.place h3 { font-family: var(--serif); font-size: 25px; line-height: 30px; margin: 0 0 14px; }
.place .summary { color: var(--text-muted); margin: 0 0 18px; }
.place .respect { margin: 0 0 20px; padding: 16px 18px; border-left: 2px solid var(--sage); background: color-mix(in srgb, var(--sage) 7%, transparent); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.place .respect .label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-soft); margin-bottom: 6px; }
.place .respect p { margin: 0; color: var(--text); font-size: 14px; line-height: 22px; }
.place .listen { margin-top: auto; }

.player { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: var(--r-pill); background: var(--surface-2); }
.player button {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--sand); color: var(--ink); display: grid; place-items: center;
}
.player button svg { width: 16px; height: 16px; }
.player .track { flex: 1; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 18%, transparent); position: relative; cursor: pointer; }
.player .fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: var(--sand); }
.player .time { font-family: var(--mono); font-size: 12px; color: var(--text-faint); min-width: 40px; text-align: right; }
.player .what { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

.premium-panel { padding: 32px; border-radius: var(--r-xl); border: 1px solid color-mix(in srgb, var(--sand) 55%, var(--border)); background: var(--bg); }
@media (min-width: 720px) { .premium-panel { padding: 48px; } }
.premium-panel h2 { margin: 0 0 12px; }
.premium-panel > p { color: var(--text-muted); max-width: 60ch; margin: 0 0 28px; font-size: 17px; line-height: 26px; }
.drive-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .drive-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.drive-list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--border); }
.drive-list .name { font-family: var(--serif); font-size: 17px; display: flex; align-items: center; gap: 10px; }
.drive-list .name svg { width: 14px; height: 14px; color: var(--sand); flex-shrink: 0; }
.drive-list .facts { color: var(--text-faint); font-size: 13px; white-space: nowrap; }
.premium-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.next-islands { display: flex; flex-wrap: wrap; gap: 10px; }
.next-islands a { padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--border); text-decoration: none; font-family: var(--serif); font-size: 17px; }
.next-islands a:hover { border-color: var(--sand); color: var(--sand); }

/* ----- place pages ----- */
.place-link { color: inherit; text-decoration: none; }
.place-link:hover { color: var(--sand); }
.place-hero { padding-bottom: 56px; }
.crumbs { margin: 0 0 14px; color: var(--text-faint); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.crumbs a { color: var(--sand); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.place-hero .sub { margin-bottom: 24px; }
.place-photo { margin: 8px 0 28px; }
.place-photo img { display: block; width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface-1); }
.place-photo figcaption { margin-top: 8px; font-size: 12px; color: var(--text-faint); }
.place-photo figcaption a { color: var(--text-faint); }
.place--page { padding: 0; border: 0; background: transparent; margin-top: 8px; }
.place--page .summary { font-family: var(--serif); font-size: 19px; line-height: 30px; color: var(--text); margin: 0 0 20px; }
.place-more { margin: -8px 0 24px; color: var(--text-faint); font-size: 14px; }
.place .respect--kapu { border-left-color: var(--ember); background: color-mix(in srgb, var(--ember) 8%, transparent); }
.place .respect--kapu .label { color: var(--ember); }
.place-map { margin: 24px 0 0; font-size: 15px; color: var(--text-faint); }
.place-cta { margin-top: 32px; align-items: center; }
.cta-note { color: var(--text-faint); font-size: 14px; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .link-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.link-list a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--border); text-decoration: none; }
.link-list .n { font-family: var(--serif); font-size: 17px; }
.link-list .r { color: var(--text-faint); font-size: 13px; white-space: nowrap; }
.link-list a:hover .n { color: var(--sand); }
.region-groups { columns: 1; column-gap: 40px; }
@media (min-width: 720px) { .region-groups { columns: 2; } }
@media (min-width: 1040px) { .region-groups { columns: 3; } }
.region-group { break-inside: avoid; margin: 0 0 32px; }
.region-group h3 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; margin: 0 0 10px; }
.region-group ul { list-style: none; padding: 0; margin: 0; }
.region-group li { padding: 5px 0; }
.region-group a { text-decoration: none; color: var(--text-muted); font-size: 15px; }
.region-group a:hover { color: var(--sand); }

/* ----- final CTA + footer ----- */
.cta { padding: 96px 0 112px; text-align: center; }
.cta h2 { margin: 0 0 16px; }
.cta p { color: var(--text-muted); margin: 0 0 32px; }
.cta .store-row { justify-content: center; }
footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--text-faint); font-size: 13px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .island-card { transition: none; }
}
