/* Moon Tides — website styles */

:root {
  --bg-deep: #05090F;
  --bg-ocean: #162338;
  --moon: #EAE4D0;
  --sun: #E8A547;
  --tide: #5DA3A5;
  --pro: #C9A559;
  --dim: #6B7A94;
  --line: rgba(107, 122, 148, 0.18);
  --line-strong: rgba(107, 122, 148, 0.32);
  --warn: #C77B6B;

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--moon);
  font-family: var(--mono);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(232, 165, 71, 0.06), transparent 60%),
    radial-gradient(ellipse at 50% 110%, rgba(93, 163, 165, 0.05), transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-ocean) 60%, var(--bg-deep) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--moon); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color .2s, border-color .2s; }
a:hover { color: var(--sun); border-color: var(--sun); }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Starfield ---------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- Header ---------- */
header.site {
  padding: 28px 0 0;
}
header.site .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
}
.brand:hover { color: var(--moon); }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--moon) 0%, var(--moon) 55%, #b8b09a 100%);
  box-shadow: 0 0 18px rgba(234, 228, 208, 0.35);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 78% 50%, var(--bg-deep) 0%, var(--bg-deep) 32%, transparent 33%);
}
.brand-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.02em;
}
nav.site-nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
nav.site-nav a { border: 0; color: var(--dim); }
nav.site-nav a:hover { color: var(--moon); }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 28px;
  color: var(--moon);
}
.hero h1 em {
  font-style: italic;
  color: var(--sun);
}
.hero p.lede {
  font-size: 16px;
  color: var(--moon);
  opacity: 0.78;
  max-width: 46ch;
  margin: 0 0 36px;
  line-height: 1.7;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: rgba(234, 228, 208, 0.02);
  color: var(--moon);
  border-radius: 2px;
  transition: all .25s ease;
  cursor: pointer;
}
.btn:hover {
  border-color: var(--sun);
  color: var(--sun);
  background: rgba(232, 165, 71, 0.05);
}
.btn.primary {
  border-color: var(--sun);
  color: var(--sun);
}
.btn.primary:hover {
  background: rgba(232, 165, 71, 0.08);
  box-shadow: 0 0 24px rgba(232, 165, 71, 0.15);
}
.btn-glyph {
  font-size: 14px;
  line-height: 1;
}
.coming-soon {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero-shot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-shot::before {
  content: '';
  position: absolute;
  width: 110%;
  height: 110%;
  background: radial-gradient(ellipse at center, rgba(232, 165, 71, 0.12) 0%, transparent 60%);
  filter: blur(40px);
  animation: breathe 6s ease-in-out infinite;
}
.hero-shot img {
  position: relative;
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 6px rgba(5, 9, 15, 0.6);
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ---------- Section common ---------- */
section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
section.no-rule { border-top: 0; }

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 22ch;
}
.section-lede {
  font-size: 15px;
  color: var(--moon);
  opacity: 0.72;
  max-width: 56ch;
  margin: 0 0 56px;
  line-height: 1.75;
}

/* ---------- Three panels ---------- */
.panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
  background:
    linear-gradient(180deg, rgba(22, 35, 56, 0.5) 0%, rgba(5, 9, 15, 0.4) 100%);
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
}
.panel:hover { border-color: var(--line-strong); }
.panel-glyph {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 14px;
  color: var(--moon);
}
.panel .panel-tag {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.panel p {
  font-size: 13px;
  line-height: 1.75;
  margin: 0 0 18px;
  color: var(--moon);
  opacity: 0.72;
}
.panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.panel ul li {
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.panel ul li:first-child { border-top: 0; }
.panel ul li .v { color: var(--moon); font-feature-settings: 'tnum'; }
.panel.moon .panel-tag { color: var(--moon); opacity: 0.55; }
.panel.tide .panel-tag { color: var(--tide); }
.panel.sun .panel-tag { color: var(--sun); }

/* ---------- Pro section ---------- */
.pro {
  background: linear-gradient(180deg, rgba(201, 165, 89, 0.04), transparent 70%);
}
.pro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.pro-price {
  border: 1px solid rgba(201, 165, 89, 0.4);
  border-radius: 4px;
  padding: 32px 28px;
  background: rgba(201, 165, 89, 0.04);
  position: sticky;
  top: 32px;
}
.pro-price .price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  color: var(--pro);
  line-height: 1;
  margin-bottom: 8px;
}
.pro-price .price-note {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 24px;
}
.pro-price ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.pro-price ul li {
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}
.pro-price ul li:first-child { border-top: 0; }

.pro-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}
.pro-feature {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.pro-feature .pf-glyph {
  color: var(--pro);
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}
.pro-feature h4 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--moon);
}
.pro-feature p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  color: var(--moon);
  opacity: 0.7;
}

/* ---------- Tip Jar ---------- */
.tipjar {
  text-align: center;
}
.tip-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.tip {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 22px 14px;
  text-align: center;
  transition: all .3s;
}
.tip:hover { border-color: var(--sun); background: rgba(232, 165, 71, 0.03); }
.tip .tip-glyph {
  font-size: 22px;
  color: var(--sun);
  margin-bottom: 10px;
}
.tip .tip-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--moon);
  margin-bottom: 4px;
}
.tip .tip-line {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Gestures strip ---------- */
.craft {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.craft-card {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.craft-card .ck { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.craft-card .cv { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--moon); }
.craft-card .cd { font-size: 12px; color: var(--moon); opacity: 0.65; margin-top: 6px; line-height: 1.65; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  border: 1px solid rgba(199, 123, 107, 0.35);
  border-radius: 2px;
  padding: 20px 22px;
  display: flex;
  gap: 20px;
  align-items: center;
  background: rgba(199, 123, 107, 0.04);
  margin-top: 56px;
}
.disclaimer .d-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid var(--warn);
  padding: 6px 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.disclaimer p {
  margin: 0;
  font-size: 13px;
  color: var(--moon);
  opacity: 0.78;
  line-height: 1.65;
}

/* ---------- Footer ---------- */
footer.site {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
footer.site .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
footer .f-left p {
  font-size: 12px;
  color: var(--dim);
  margin: 6px 0 0;
}
footer .f-right {
  display: flex;
  gap: 28px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
footer .f-right a { border: 0; color: var(--dim); }
footer .f-right a:hover { color: var(--moon); }

/* ---------- Privacy page ---------- */
.privacy-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.privacy-wrap h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 48px;
  margin: 0 0 8px;
}
.privacy-wrap .updated {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 48px;
}
.privacy-wrap h2 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sun);
  margin: 48px 0 14px;
}
.privacy-wrap p, .privacy-wrap li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--moon);
  opacity: 0.82;
}
.privacy-wrap ul { padding-left: 18px; }
.privacy-wrap a { color: var(--sun); border-color: rgba(232, 165, 71, 0.3); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 0;
  }
  .hero-shot { order: -1; }
  .hero-shot img { max-width: 220px; }
  .panels { grid-template-columns: 1fr; }
  .pro-grid { grid-template-columns: 1fr; }
  .pro-price { position: static; }
  .pro-features { grid-template-columns: 1fr; }
  .tip-row { grid-template-columns: repeat(2, 1fr); }
  .craft { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  nav.site-nav { display: none; }
}

@media (max-width: 520px) {
  .container { padding: 0 22px; }
  .craft { grid-template-columns: 1fr; }
  .tip-row { grid-template-columns: 1fr; }
  .disclaimer { flex-direction: column; align-items: flex-start; }
}

/* ---------- Inline SVG glyph helpers ---------- */
.glyph {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  vertical-align: -0.15em;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-shot::before { animation: none; }
}
