/* Shorebound marketing site — shared stylesheet (landing + guides) */

:root {
  --bg: #d8f0f9;
  --bg-raised: #e7f6fc;
  --sand: #f6e8c9;
  --sand-deep: #efdcae;
  --ink: #17293d;
  --muted: #4f6a80;
  --accent: #4aa8e0;
  --accent-strong: #2f8ecf;
  --button-bg: #79c4ee;
  --button-bg-hover: #8fd0f4;
  --button-text: #0e2a40;
  --card-shadow: 0 18px 44px rgba(23, 41, 61, 0.14);
  --header-bg: rgba(216, 240, 249, 0.82);
  --line: rgba(23, 41, 61, 0.12);
  --focus: rgba(74, 168, 224, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c2a4d;
    --bg-raised: #24335a;
    --sand: #cdb489;
    --sand-deep: #c0a674;
    --ink: #eef4fb;
    --muted: #a9b8d2;
    --accent: #6fb9e9;
    --accent-strong: #8ecdf4;
    --button-bg: #5fb0e6;
    --button-bg-hover: #79c1ef;
    --button-text: #0e2a40;
    --card-shadow: 0 18px 44px rgba(4, 10, 24, 0.45);
    --header-bg: rgba(28, 42, 77, 0.85);
    --line: rgba(238, 244, 251, 0.14);
  }
}

/* Text placed on sand cards is always dark, in both themes (matches the app) */
:root {
  --sand-ink: #2c3a2e;
  --sand-ink-strong: #1f2d22;
  --sand-muted: #5c6353;
}

@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/public/fonts/Satoshi-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Satoshi";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("/public/fonts/Satoshi-VariableItalic.woff2") format("woff2");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 8px;
}

.container {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  display: none;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-cta {
  margin-left: auto;
}

@media (min-width: 760px) {
  .site-nav {
    display: flex;
  }
  .header-cta {
    margin-left: 0;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  background: var(--button-bg);
  color: var(--button-text);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 26px rgba(47, 142, 207, 0.32);
}

.btn:hover {
  background: var(--button-bg-hover);
  transform: translateY(-2px);
}

.btn.btn-small {
  padding: 10px 20px;
  font-size: 0.92rem;
  box-shadow: 0 6px 16px rgba(47, 142, 207, 0.25);
}

.btn.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: none;
}

.btn.btn-ghost:hover {
  border-color: var(--accent);
  background: transparent;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 18px;
  margin-bottom: 0;
}

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

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px);
  overflow: clip;
}

.hero .container {
  display: grid;
  gap: 40px;
  align-items: center;
}

/* Mobile: lead with the app itself, then the pitch */
@media (max-width: 899px) {
  .hero .container {
    gap: 32px;
  }
  .hero-visual {
    order: -1;
  }
  .hero-visual .phone {
    width: min(58vw, 240px);
  }
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 900;
  margin: 0 0 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-strong);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 28px;
}

.hero-promise {
  margin: -10px 0 28px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 24px;
}

/* ---------- Framed app screenshots ---------- */

.phone {
  width: clamp(230px, 26vw, 300px);
  aspect-ratio: 320 / 665;
  filter: drop-shadow(0 18px 22px rgba(23, 41, 61, 0.18));
}

@media (prefers-color-scheme: dark) {
  .phone {
    filter: drop-shadow(0 18px 22px rgba(4, 10, 24, 0.5));
  }
}

.phone picture,
.phone img {
  display: block;
  width: 100%;
}

.phone img {
  height: auto;
}

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

.section {
  padding: clamp(56px, 9vw, 110px) 0;
}

.section-alt {
  background: var(--bg-raised);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: -0.02em;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.positioning-grid {
  display: grid;
  gap: 28px;
  align-items: stretch;
}

.positioning-copy {
  align-self: center;
}

.positioning-copy h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: -0.02em;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 18px;
}

.positioning-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.positioning-copy p + p {
  margin-top: 18px;
}

.positioning-supporting {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

@media (min-width: 700px) {
  .positioning-supporting {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .positioning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  background: var(--sand);
  border-radius: 24px;
  padding: 26px 24px;
  color: var(--sand-ink);
  box-shadow: var(--card-shadow);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 800;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: var(--sand-ink-strong);
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--sand-muted);
}

.step img.step-icon {
  width: 44px;
  height: 44px;
  float: right;
}

/* ---------- Screenshot rail ---------- */

/* Full-bleed carousel: clips at the viewport edge, first card aligns with the content column */
.rail {
  display: flex;
  gap: clamp(16px, 2.5vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 12px 0 28px;
  padding-inline: max(clamp(20px, 4vw, 40px), calc((100vw - 1120px) / 2 + clamp(20px, 4vw, 40px)));
  scroll-padding-inline: max(clamp(20px, 4vw, 40px), calc((100vw - 1120px) / 2 + clamp(20px, 4vw, 40px)));
  -webkit-overflow-scrolling: touch;
}

.rail::-webkit-scrollbar {
  height: 8px;
}

.rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 8px;
}

.shot {
  scroll-snap-align: start;
  flex: 0 0 auto;
  text-align: center;
}

.shot figcaption {
  margin-top: 14px;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  gap: 18px;
}

@media (min-width: 700px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  background: var(--sand);
  color: var(--sand-ink);
  border-radius: 24px;
  padding: 28px 26px;
  box-shadow: var(--card-shadow);
}

.feature .emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 1.12rem;
  color: var(--sand-ink-strong);
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--sand-muted);
}

.feature-quote {
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(44, 58, 46, 0.16);
}

.feature-quote p {
  color: var(--sand-ink-strong);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.feature-quote footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--sand-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.feature-quote footer img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* ---------- Testimonials ---------- */

.quote {
  background: var(--sand);
  border-radius: 24px;
  padding: 26px 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote blockquote {
  margin: 0;
  font-size: 1rem;
  color: var(--sand-ink-strong);
  font-weight: 500;
  line-height: 1.55;
}

.quote-featured {
  padding: clamp(30px, 5vw, 48px);
}

.quote-featured blockquote {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.5;
}

.quote footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  color: var(--sand-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.quote footer img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* ---------- Guides ---------- */

.guide-cards {
  display: grid;
  gap: 18px;
}

.guides-more {
  margin-top: 28px;
  text-align: center;
}

@media (min-width: 700px) {
  .guide-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .guide-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.guide-card {
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 180ms ease, border-color 180ms ease;
}

.section-alt .guide-card {
  background: var(--bg);
}

.guide-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.guide-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.guide-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.93rem;
}

.guide-card .more {
  font-weight: 700;
  color: var(--accent-strong);
  font-size: 0.92rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 36px 16px 0;
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent-strong);
  transition: transform 200ms ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list .faq-body {
  padding: 0 0 20px;
  color: var(--muted);
  max-width: 60em;
}

.faq-list .faq-body a {
  font-weight: 600;
}

/* ---------- Final CTA ---------- */

.cta-panel {
  background: var(--sand);
  border-radius: 32px;
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.cta-panel h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  color: var(--sand-ink-strong);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.cta-panel p {
  color: var(--sand-muted);
  margin: 0 auto 26px;
  max-width: 36em;
}

.cta-panel .cta-note {
  color: var(--sand-muted);
  margin: 18px auto 0;
}

.cta-bottles {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}

.cta-bottles img {
  height: 84px;
  width: auto;
  filter: drop-shadow(0 8px 10px rgba(23, 41, 61, 0.2));
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  background: var(--bg-raised);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}

/* Mobile footer: brand, then App | Company side by side, Guides two-up below */
@media (max-width: 759px) {
  .site-footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-col:nth-child(3) {
    grid-column: 1 / -1;
    order: 2;
  }

  .footer-col:nth-child(3) ul {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }

  .footer-meta {
    grid-column: 1 / -1;
    order: 3;
    margin-top: 0;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .brand {
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--accent-strong);
}

.footer-meta {
  width: 100%;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Guide article pages ---------- */

.article-hero {
  padding: clamp(48px, 7vw, 80px) 0 clamp(24px, 4vw, 40px);
}

.breadcrumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--muted);
}

.article-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin: 0 0 16px;
  max-width: 20em;
}

.article-hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42em;
  margin: 0;
}

.article {
  max-width: 760px;
  padding-bottom: clamp(48px, 7vw, 80px);
}

.article h2 {
  font-size: 1.55rem;
  letter-spacing: -0.015em;
  margin: 2.2em 0 0.6em;
}

.article h3 {
  font-size: 1.18rem;
  margin: 1.8em 0 0.5em;
}

.article p,
.article li {
  color: var(--muted);
  font-size: 1.02rem;
}

.article strong {
  color: var(--ink);
}

.article .article-callout {
  background: var(--sand);
  color: var(--sand-ink);
  border-radius: 20px;
  padding: 22px 24px;
  margin: 1.6em 0;
}

.article .article-callout p,
.article .article-callout li {
  color: var(--sand-muted);
}

.article .article-callout strong,
.article .article-callout a {
  color: var(--sand-ink-strong);
}

.article figure.inline-shot {
  margin: 2em auto;
  text-align: center;
}

.article figure.inline-shot figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 12px;
}

.article table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  font-size: 0.95rem;
}

.article th,
.article td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.article th {
  color: var(--ink);
  font-weight: 700;
}

.article td:last-child {
  color: var(--ink);
  font-weight: 500;
}

.article-cta {
  margin: 2.4em 0;
}

.related {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 24px;
}

.related h2 {
  font-size: 1.2rem;
}

/* ---------- Reveal animations ---------- */

/* Hidden state only applies once JS tags <html> — crawlers and no-JS users see everything */
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(26px);
}

html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-delay="1"].is-visible { transition-delay: 90ms; }
.reveal[data-delay="2"].is-visible { transition-delay: 180ms; }
.reveal[data-delay="3"].is-visible { transition-delay: 270ms; }
.reveal[data-delay="4"].is-visible { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
  .btn,
  .bottle-card,
  .guide-card {
    transition: none;
  }
}
