/* Sortmere — sortmere.com
   Colors come from the app's SortmereTheme (deep water, lake, lagoon, mist, sky). */

:root {
  --deep-water: #093B61;
  --lake: #12638C;
  --lagoon: #14919E;
  --mist: #ABE0E0;
  --sky: #6BB8D6;
  --reed: #3F7F6D;
  --dusk: #636EAB;
  --coral: #B25A57;

  --bg: #F0FAFB;
  --bg-2: #DDF2F5;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #FFFFFF;
  --border: #CFE5EA;
  --ink: #0B2A3C;
  --ink-2: #3C5868;
  --heading: var(--deep-water);
  --accent: var(--lake);
  --accent-ink: #FFFFFF;
  --focus: #0A7C8A;

  --pond-1: #2192A6;
  --pond-2: #14668F;
  --pond-3: #0D4A7A;

  --radius: 22px;
  --shadow: 0 10px 30px rgba(9, 59, 97, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08202E;
    --bg-2: #0A2A38;
    --surface: rgba(20, 52, 68, 0.6);
    --surface-solid: #0F3040;
    --border: #1F4A5C;
    --ink: #E3F1F4;
    --ink-2: #A9C4CD;
    --heading: #EAF7F9;
    --accent: #5FC3CF;
    --accent-ink: #062432;
    --focus: #7FD6E0;
    --coral: #E08C88;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3 { color: var(--heading); line-height: 1.12; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--deep-water); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 13px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lagoon); margin-bottom: 12px;
}
@media (prefers-color-scheme: light) { .eyebrow { color: #0B6772; } }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(18, 99, 140, 0.25); }
.button-quiet { background: transparent; color: var(--heading); border-color: var(--border); }
.button-quiet:hover { background: var(--surface); }
.button-light { background: #FFFFFF; color: var(--deep-water); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; }
.nav-list { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-list a:hover { color: var(--accent); }
.nav-list .nav-cta { background: var(--deep-water); color: #fff; padding: 9px 16px; border-radius: 999px; }
.nav-list .nav-cta:hover { color: #fff; background: var(--lake); }
@media (prefers-color-scheme: dark) { .nav-list .nav-cta { background: var(--accent); color: var(--accent-ink); } .nav-list .nav-cta:hover { color: var(--accent-ink); background: var(--mist); } }
@media (max-width: 560px) { .nav-list li:not(:last-child) { display: none; } }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(170deg, var(--bg) 0%, var(--bg-2) 70%, var(--bg) 100%); position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(52px, 8vw, 88px); font-weight: 750; letter-spacing: -0.035em; }
.tagline { margin-top: 14px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; font-weight: 600; color: var(--heading); letter-spacing: -0.01em; max-width: 520px; }
.lede { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .pond-wrap { order: -1; }
}

/* Waterline under the hero, echoing the app's WaterlineAccent */
.waterline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 60px; }
.waterline path { fill: none; stroke: var(--sky); stroke-width: 1.5; opacity: 0.45; }
.waterline path + path { opacity: 0.25; }

/* ---------- Pond visual ---------- */
.pond-wrap { perspective: 900px; }
.pond {
  position: relative; aspect-ratio: 5 / 4; width: 100%; max-width: 520px; margin-inline: auto;
  border-radius: 32px; overflow: hidden; color: #fff;
  background: linear-gradient(140deg, var(--pond-1) 0%, var(--pond-2) 55%, var(--pond-3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(20, 110, 140, 0.28);
}
.pond-sheen {
  position: absolute; left: 12%; right: 12%; top: 58%; height: 16%;
  border-radius: 50%; background: rgba(255, 255, 255, 0.12); filter: blur(16px);
}
.pond-caption {
  position: absolute; left: 0; right: 0; bottom: 9%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, 0.92);
}
.pond-caption svg { opacity: 0.85; }

/* Ripples: three ellipses centered on the landing point */
.ripples { position: absolute; left: 50%; top: 52%; width: 0; height: 0; }
.ripple {
  position: absolute; left: -110px; top: -34px; width: 220px; height: 68px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.75);
  opacity: 0; transform: scale(0.1);
}

/* The dropped file: a chip that falls and morphs into a droplet */
.drop {
  position: absolute; left: 50%; top: 52%;
  width: 150px; height: 38px; margin-left: -75px; margin-top: -19px;
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF; color: #3C5868; border-radius: 10px;
  font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden;
  box-shadow: 0 8px 18px rgba(4, 30, 50, 0.3);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .pond.is-playing .drop { animation: drop-fall 1.5s cubic-bezier(0.5, 0, 0.75, 0.4) forwards; }
  .pond.is-playing .drop-label { animation: label-fade 1.5s ease forwards; }
  .pond.is-playing .ripple { animation: ripple 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) forwards; }
  .pond.is-playing .r1 { animation-delay: 1.35s; }
  .pond.is-playing .r2 { animation-delay: 1.7s; }
  .pond.is-playing .r3 { animation-delay: 2.05s; }
}

@keyframes drop-fall {
  0%   { opacity: 0; transform: translateY(-190px) rotate(-6deg); width: 150px; height: 38px; margin-left: -75px; margin-top: -19px; border-radius: 10px; background: #FFFFFF; }
  12%  { opacity: 1; }
  55%  { transform: translateY(-70px) rotate(0deg); width: 150px; height: 38px; margin-left: -75px; margin-top: -19px; border-radius: 10px; background: #FFFFFF; }
  78%  { transform: translateY(-20px); width: 22px; height: 30px; margin-left: -11px; margin-top: -15px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: #D7F1F4; }
  92%  { opacity: 1; transform: translateY(0) scale(1, 0.9); width: 22px; height: 30px; margin-left: -11px; margin-top: -15px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: #D7F1F4; }
  100% { opacity: 0; transform: translateY(4px) scale(1.6, 0.3); width: 22px; height: 30px; margin-left: -11px; margin-top: -15px; border-radius: 50%; background: #D7F1F4; }
}
@keyframes label-fade { 0%, 50% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes ripple {
  0%   { opacity: 0.9; transform: scale(0.1); }
  100% { opacity: 0; transform: scale(1.9); }
}

/* Resting pond (before and between plays): faint, still ripples */
.pond:not(.is-playing) .ripple.r1 { opacity: 0.4; transform: scale(0.45); }
.pond:not(.is-playing) .ripple.r2 { opacity: 0.25; transform: scale(0.85); }
.pond:not(.is-playing) .ripple.r3 { opacity: 0.12; transform: scale(1.25); }

/* Reduced motion: a still pond with resting ripples, like the app's static drop zone */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .button:hover { transition: none; transform: none; }
  .ripple.r1 { opacity: 0.55; transform: scale(0.45); }
  .ripple.r2 { opacity: 0.35; transform: scale(0.85); }
  .ripple.r3 { opacity: 0.18; transform: scale(1.25); }
}

/* ---------- Features ---------- */
.features { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.feature p { color: var(--ink-2); font-size: 16px; }
.feature-wide {
  margin-bottom: 20px;
  background: linear-gradient(140deg, var(--pond-1) 0%, var(--pond-2) 60%, var(--pond-3) 100%);
  border-color: transparent; color: #fff;
}
.feature-wide h3 { color: #fff; font-size: 22px; }
.feature-wide p { color: #DDF1F4; font-size: 17px; max-width: 620px; }
.feature-wide .icon { background: rgba(255, 255, 255, 0.18); }

.icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 4px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lagoon { background: #0F7D89; }
.icon-lake { background: var(--lake); }
.icon-reed { background: var(--reed); }
.icon-dusk { background: var(--dusk); }
.icon-sky { background: #2C7FA6; }
.icon-coral { background: #B25A57; }

@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Screenshots ----------
   Retina captures of the app in dark mode. Rounded corners, a hairline border
   and a soft shadow frame them so they sit well on the light page too. */
.shot-figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shot {
  display: block; width: 100%; height: auto;
  border-radius: 14px;
  background: #1D2A33;
  border: 1px solid rgba(9, 59, 97, 0.18);
  box-shadow: 0 1px 2px rgba(9, 59, 97, 0.10), 0 18px 44px rgba(9, 59, 97, 0.18);
}
@media (prefers-color-scheme: dark) {
  .shot { border-color: rgba(171, 224, 224, 0.16); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
}
.shot-figure figcaption { font-size: 14px; color: var(--ink-2); text-align: center; }

.product-shot { margin-top: clamp(-56px, -4vw, -24px); position: relative; z-index: 1; padding-bottom: clamp(24px, 4vw, 48px); }
.product-shot .shot-figure { max-width: 1120px; margin-inline: auto; }
.product-shot .shot { border-radius: 18px; }

.showcase {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  margin: clamp(40px, 6vw, 72px) 0;
}
.showcase-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.showcase-flip .showcase-copy { order: 2; }
.showcase-copy { display: flex; flex-direction: column; gap: 12px; }
.showcase-copy h3 { font-size: clamp(22px, 2.4vw, 28px); }
.showcase-copy p { color: var(--ink-2); max-width: 440px; }
@media (max-width: 860px) {
  .showcase, .showcase-flip { grid-template-columns: 1fr; }
  .showcase-flip .showcase-copy { order: 0; }
}

/* ---------- Beta ---------- */
.beta { padding-bottom: clamp(64px, 9vw, 112px); }
.beta-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start;
  padding: clamp(28px, 5vw, 56px); border-radius: 30px; color: #E6F4F7;
  background: var(--deep-water);
  background-image: radial-gradient(ellipse 70% 50% at 85% 110%, rgba(20, 145, 158, 0.45), transparent 70%);
}
.beta-card h2 { color: #fff; margin-bottom: 14px; }
.beta-copy p { color: #C9DEE7; max-width: 520px; margin-bottom: 24px; }
.eyebrow-light { color: var(--mist) !important; }

.placeholder-note {
  margin-top: 14px !important; margin-bottom: 0 !important;
  display: inline-block; padding: 8px 12px; border-radius: 10px;
  border: 1.5px dashed #F2C66D; color: #F7D68E !important;
  font-size: 13px; font-weight: 650; letter-spacing: 0.02em;
}

.requirements {
  padding: 24px 26px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
}
.requirements h3 { color: #fff; font-size: 17px; margin-bottom: 10px; }
.requirements ul { margin: 0; padding-left: 20px; color: #C9DEE7; }
.requirements li + li { margin-top: 6px; }

@media (max-width: 820px) { .beta-card { grid-template-columns: 1fr; } }

/* ---------- Feedback ---------- */
.feedback { padding-bottom: clamp(64px, 9vw, 112px); }
.feedback-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px;
  padding: clamp(28px, 4vw, 44px); border-radius: 28px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.feedback-lede { color: var(--ink-2); margin-top: 10px; max-width: 460px; }
.support-line { margin-top: 12px; font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.feedback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.feedback-actions .button-primary { overflow-wrap: anywhere; text-align: center; }
.copy-status { flex-basis: 100%; min-height: 1.4em; font-size: 14px; color: var(--ink-2); }
.copy-btn[hidden] { display: none; }
.pond { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .pond { cursor: default; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 36px; font-size: 15px; color: var(--ink-2); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--ink-2); }
.site-footer p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a:hover { color: var(--accent); }
