/* Seaglass Apps — site styles. Palette "Tide" from the Cleaner app (design-export/redesign-v1/HANDOFF.md).
   No external fonts, no scripts: system fonts, light/dark via prefers-color-scheme. */

:root {
  --bg: #F3F6F6;
  --sf: #FFFFFF;
  --sf2: #E9EFEE;
  --line: #DCE4E3;
  --ink: #0E1A1C;
  --ink2: #566467;
  --ink3: #8A9799;
  --ac: #0B7A75;
  --ac-deep: #08605C;
  --ac-soft: #DDEFEC;
  --on-ac: #FFFFFF;
  --sun: #F2B635;
  --p1: #0B7A75;
  --p2: #47A69D;
  --p3: #8CCBC3;
  --p4: #DDEFEC;
  --icon-shadow: 0 1px 2px rgba(14, 26, 28, .08), 0 10px 30px rgba(14, 26, 28, .12);

  --r-card: 22px;
  --r-btn: 14px;
  --wrap: 1080px;
  --read: 680px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1213;
    --sf: #152022;
    --sf2: #1D2B2D;
    --line: #26393B;
    --ink: #EAF2F1;
    --ink2: #9FB2B1;
    --ink3: #6B7F80;
    --ac: #3CC6B8;
    --ac-deep: #3CC6B8;
    --ac-soft: #123C38;
    --on-ac: #04201D;
    --p1: #3CC6B8;
    --p2: #2BA295;
    --p3: #3A7F79;
    --p4: #1D2B2D;
    --icon-shadow: 0 0 0 1px rgba(234, 242, 241, .08), 0 10px 30px rgba(0, 0, 0, .4);
  }
}

/* Base */

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

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

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-round);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { margin: 0; }

a { color: var(--ac-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 14px; border-radius: 10px;
  background: var(--ac); color: var(--on-ac); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-round); font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
}
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }

.top-nav { display: flex; gap: 4px; }
.top-nav a {
  padding: 8px 12px; border-radius: 10px;
  color: var(--ink2); font-size: 15px; font-weight: 600; text-decoration: none;
}
.top-nav a:hover { background: var(--sf2); color: var(--ink); }

/* App sub-navigation (Cleaner pages) */

.app-nav { background: var(--sf); border-bottom: 1px solid var(--line); }
.app-nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 56px; overflow-x: auto; }
.app-nav .app-name {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.app-nav .app-name img { width: 28px; height: 28px; border-radius: 7px; }
.app-nav ul { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.app-nav ul a {
  display: block; padding: 7px 12px; border-radius: 999px;
  color: var(--ink2); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.app-nav ul a:hover { color: var(--ink); background: var(--sf2); }
.app-nav ul a[aria-current="page"] { background: var(--ac-soft); color: var(--ac-deep); }

/* Shared blocks */

main { display: block; padding-bottom: 72px; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ac-deep); }

.lead { font-size: 19px; line-height: 1.55; color: var(--ink2); }

.card { background: var(--sf); border-radius: var(--r-card); padding: 24px; }

.section { margin-top: 64px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: 28px; font-weight: 800; }

.tile {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px; background: var(--ac-soft); color: var(--ac);
}
.tile svg { width: 22px; height: 22px; }

.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-btn);
  background: var(--ac); color: var(--on-ac);
  font-size: 17px; font-weight: 600; text-decoration: none;
}
.btn:hover { filter: brightness(.94); }
.btn-soft { background: var(--ac-soft); color: var(--ac-deep); }
.btn[aria-disabled="true"] { background: var(--sf2); color: var(--ink2); cursor: default; filter: none; }

.links { background: var(--sf); border-radius: var(--r-card); padding: 0 20px; margin: 0; list-style: none; }
.links li + li { border-top: 1px solid var(--line); }
.links a {
  display: flex; align-items: center; gap: 14px; min-height: 60px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.links a .chev { margin-left: auto; color: var(--ink3); }
.links a:hover .chev { color: var(--ac); }
.links .ext { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--ink2); }

/* Home */

.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 72px 0 24px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; }
.hero .lead { margin-top: 20px; max-width: 34ch; }
.hero-art { justify-self: center; width: 100%; max-width: 360px; }
.hero-art svg { width: 100%; height: auto; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.pills li {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px 0 12px; border-radius: 999px;
  background: var(--sf); color: var(--ink); font-size: 15px; font-weight: 600;
}
.pills svg { width: 18px; height: 18px; color: var(--ac); }

.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.app-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px; border-radius: var(--r-card); background: var(--sf);
  color: inherit; text-decoration: none;
  transition: transform .2s ease;
}
.app-card:hover { transform: translateY(-2px); }
.app-card img { width: 72px; height: 72px; border-radius: 17px; box-shadow: var(--icon-shadow); }
.app-card h3 { font-size: 22px; font-weight: 800; }
.app-card p { margin-top: 6px; color: var(--ink2); }
.app-card .meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink2); }
.app-card .more { color: var(--ac-deep); font-weight: 600; font-size: 15px; }

/* A single app gets the whole row, laid out horizontally. */
.app-card:only-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; padding: 28px; }
.app-card:only-child img { width: 96px; height: 96px; border-radius: 22px; }
.app-card:only-child .body { flex: 1; min-width: 0; }
.app-card:only-child .meta { margin-top: 14px; justify-content: flex-start; }

/* Product page */

.product { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: start; padding: 64px 0 8px; }
.product .icon { width: 128px; height: 128px; border-radius: 29px; box-shadow: var(--icon-shadow); }
.product h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 800; letter-spacing: -0.025em; }
.product .tagline { margin-top: 8px; font-family: var(--font-round); font-size: 22px; font-weight: 600; color: var(--ac-deep); }
.product .lead { margin-top: 16px; max-width: 46ch; }
.product .cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.product .req { font-size: 14px; color: var(--ink2); }

.finds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.finds .card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-weight: 600; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.features .card { display: flex; flex-direction: column; gap: 12px; }
.features h3 { font-size: 19px; font-weight: 700; }
.features p { color: var(--ink2); font-size: 16px; }

/* Long-form reading (privacy) */

.doc { display: grid; grid-template-columns: 220px minmax(0, var(--read)); gap: 56px; justify-content: center; padding-top: 56px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14px; }
.toc p { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink2); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--ac); }

.prose { font-size: 18px; line-height: 1.7; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.prose .meta { margin-top: 12px; font-size: 15px; color: var(--ink2); }
.prose h2 { margin-top: 44px; font-size: 24px; font-weight: 700; scroll-margin-top: 24px; }
.prose h2 + p { margin-top: 10px; }
.prose p { color: var(--ink2); }
.prose p + p { margin-top: 14px; }
.prose .summary { margin-top: 32px; padding: 24px 24px 24px 24px; background: var(--ac-soft); border-radius: var(--r-card); }
.prose .summary h2 { margin-top: 0; font-size: 20px; color: var(--ac-deep); }
.prose .summary p { color: var(--ink); }

/* Support */

.support-head { max-width: var(--read); padding-top: 56px; }
.support-head h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -0.02em; }

.contact { margin-top: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.contact .text { flex: 1; min-width: 240px; }
.contact .text p { color: var(--ink2); }
.contact .addr { display: block; font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; margin-bottom: 2px; }

.faq { max-width: var(--read); display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--sf); border-radius: 18px; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 20px; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); border-color: var(--ac); }
.faq details p { padding: 0 20px 18px; color: var(--ink2); }

/* Footer */

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; padding-bottom: 40px; font-size: 14px; color: var(--ink2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--ink2); }
.site-footer a:hover { color: var(--ink); }

/* Small screens */

@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 44px; }
  .hero-art { order: -1; max-width: 220px; justify-self: start; }
  .features, .finds { grid-template-columns: minmax(0, 1fr); }
  .product { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 40px; }
  .product .icon { width: 96px; height: 96px; border-radius: 22px; }
  .app-card:only-child { flex-direction: column; align-items: flex-start; padding: 24px; }
  .app-card:only-child img { width: 72px; height: 72px; border-radius: 17px; }
  .section { margin-top: 48px; }
  .app-nav .app-name span { display: none; }
  .contact { flex-direction: column; align-items: flex-start; gap: 14px; }
  .contact .text { min-width: 0; }
  .contact .btn { align-self: stretch; }
  .top-nav a { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
