/* Tiny Tides: Duckling Rescue */

:root {
  --sea: #0f3d5c;
  --teal: #0b6e99;
  --sun: #ffc857;
  --sun-hover: #ffb937;
  --ink: #14273a;
  --muted: #4b6072;
  --foam: #f4f8f7;
  --card: #fff;
  --footer: #e4ecef;
  --line: rgba(20, 39, 58, 0.12);
  --on-sea-muted: #b9d0dc;
  --focus: var(--teal);
  --wrap: 1040px;
  --pad: clamp(20px, 4vw, 40px);
  --radius: 18px;
  color-scheme: light;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--foam);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

main:focus-visible {
  outline-offset: -3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

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

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sea);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  --focus: var(--ink);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.wrap--narrow {
  --wrap: 720px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: var(--sun-hover);
  color: var(--ink);
}

.btn--secondary {
  background: transparent;
  color: var(--sea);
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.btn--secondary:hover {
  background: rgba(15, 61, 92, 0.07);
  color: var(--sea);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Header */

.site-header {
  --focus: var(--sun);
  background: var(--sea);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand img {
  flex: none;
  width: 32px;
  height: 32px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 22.5%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

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

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.site-nav .nav-cta {
  background: var(--sun);
  color: var(--ink);
}

.site-nav .nav-cta:hover {
  background: var(--sun-hover);
  color: var(--ink);
}

/* Product header */

.hero {
  --overlap: clamp(56px, 11vw, 160px);
  --focus: var(--sun);
  padding-top: clamp(28px, 5vw, 56px);
  background: linear-gradient(to top, var(--foam) var(--overlap), var(--sea) var(--overlap));
  color: #fff;
}

.app {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(16px, 3vw, 32px);
}

.app-icon {
  width: clamp(84px, 14vw, 132px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 12px 28px -12px rgba(0, 0, 0, 0.5);
}

.app h1 {
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
}

.app-subtitle {
  margin: 0.35em 0 0;
  color: var(--on-sea-muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  line-height: 1.35;
}

.app-publisher {
  margin: 0.3em 0 0;
  color: var(--sun);
  font-weight: 600;
  font-size: 0.95rem;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  grid-column: 1 / -1;
  gap: 12px 16px;
  margin-top: 24px;
}

.app-actions .btn--secondary,
.app-actions .btn--secondary:hover {
  color: #fff;
}

.app-actions .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.app-note {
  margin: 0;
  color: var(--on-sea-muted);
  font-size: 0.9rem;
}

.cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  margin-top: clamp(28px, 4vw, 48px);
  border-radius: clamp(14px, 2vw, 24px);
  background: #1b6a8f;
  box-shadow: 0 1px 2px rgba(10, 30, 50, 0.12), 0 24px 48px -24px rgba(10, 30, 50, 0.45);
}

/* At a glance */

.glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.glance > div {
  display: flex;
  flex-direction: column;
  padding: 14px 6px;
  background: var(--foam);
  text-align: center;
}

.glance dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glance dd {
  margin: 0;
}

.glance .value {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.glance .caption {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

/* Sections */

.section {
  padding-block: clamp(40px, 6vw, 72px);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-title {
  margin-bottom: 20px;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
}

.split {
  display: grid;
  gap: 20px 56px;
}

.app > *,
.split > *,
.get-card > * {
  min-width: 0;
}

.split h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
}

.split-lead {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 34ch;
}

.prose {
  max-width: 62ch;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Screenshots: swipeable row on small screens, a fixed row from 720px */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 300px);
  gap: 16px;
  margin: 0 calc(var(--pad) * -1);
  padding: 4px var(--pad) 12px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: thin;
}

.shots:focus-visible {
  outline-offset: -3px;
}

.shots li {
  min-width: 0;
  scroll-snap-align: start;
}

.shots img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: 20px;
  background: #1b6a8f;
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -20px rgba(15, 61, 92, 0.6);
}

/* Price */

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line);
}

.price-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  padding: 18px 20px;
}

.price-list li + li {
  border-top: 1px solid var(--line);
}

.price-name {
  font-weight: 650;
}

.price-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.price-desc {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Blog cards */

.post-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-card {
  position: relative;
  padding: 22px 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line);
}

.post-card:hover {
  box-shadow: 0 0 0 1px rgba(15, 61, 92, 0.3), 0 12px 28px -18px rgba(15, 61, 92, 0.45);
}

.post-card h2,
.post-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.post-card a {
  color: var(--sea);
  text-decoration: none;
}

.post-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.post-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

@supports selector(:has(a)) {
  .post-card:has(a:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
  }

  .post-card a:focus-visible {
    outline: none;
  }
}

/* Blog pages */

.page {
  padding-block: clamp(32px, 6vw, 64px);
}

.page-title {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.8rem);
}

.lead {
  margin: 12px 0 32px;
  color: var(--muted);
  font-size: 1.1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 8px;
  font-weight: 600;
  text-decoration: none;
}

.post > .page-title {
  margin-bottom: 28px;
}

.post h2 {
  margin: 1.8em 0 0.5em;
  font-size: 1.45rem;
}

.post ul {
  padding-left: 1.25em;
}

.post li {
  margin: 0.45em 0;
}

.post-shot {
  width: min(100%, 340px);
  aspect-ratio: 2 / 3;
  object-fit: contain;
  margin: 32px auto;
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -20px rgba(15, 61, 92, 0.6);
}

.get-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line);
}

.get-card img {
  width: 64px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 22.5%;
}

.get-card p {
  margin: 0;
}

.get-card-name {
  font-weight: 700;
  line-height: 1.3;
}

.get-card-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.get-card .actions {
  grid-column: 1 / -1;
  margin-top: 4px;
}

/* Footer */

.site-footer {
  padding-block: 28px 40px;
  background: var(--footer);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--teal);
  text-decoration: underline;
}

.site-footer p {
  margin: 0 0 4px;
}

/* Breakpoints */

@media (max-width: 539px) {
  .app-actions .btn,
  .actions .btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 640px) {
  .app-actions {
    grid-column: 2;
    margin-top: 20px;
  }
}

@media (min-width: 720px) {
  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 300px));
    gap: 24px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}

@media (min-width: 760px) {
  .glance {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .site-nav a,
  .post-card {
    transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  }
}

/* EX-022 cross-site strip */
.xsite { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.site-footer .xsite-title { margin: 0 0 2px; color: var(--ink); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.xsite ul { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.xsite a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.xsite a:hover, .xsite a:focus-visible { color: var(--teal); text-decoration: underline; }
.xsite-title a, .xsite-title a:hover, .xsite-title a:focus-visible { display: inline; min-height: 0; padding: 0; color: inherit; }
.xsite-title a:hover, .xsite-title a:focus-visible { text-decoration: underline; }

/* EX-065 (2026-10-28): FAQ and comparison table */
.faq { border-top: 1px solid rgba(15,61,92,.15); }
.faq-item { border-bottom: 1px solid rgba(15,61,92,.15); padding: 14px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: 8px 0 0; }
.faq + .actions { margin-top: 24px; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.compare { border-collapse: collapse; width: 100%; font-size: .95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(15,61,92,.15); }
.compare thead th { font-weight: 600; }
