/* Floaty Focus — the app's cozy palette (DesignSystem/Components/CozyStyle.swift). */
:root {
  --background: #f8eedc;
  --surface: #fff5e5;
  --text: #48301f;
  --secondary: #71543c;
  --border: #cdb493;
  --terracotta: #ae5126;
  --sage: #5a9a4a;
  --cream: #fdf6ec;
  --wood: #6f4328;
  color-scheme: light dark;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #211e1b;
    --surface: #302922;
    --text: #f9eedc;
    --secondary: #d3bfa5;
    --border: #68533e;
    --terracotta: #a34a22;
    --sage: #8cc474;
  }
}
* { box-sizing: border-box; }
/* `display` set on a class would otherwise beat the attribute. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--terracotta); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: #e8a37f; } }

/* The wood banner, like the app's top bar. */
header {
  background: var(--wood);
  color: var(--cream);
  padding: 14px 16px;
}
header .inner, main, footer .inner {
  width: min(100%, 760px);
  margin: 0 auto;
}
header .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
header .brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 800; font-size: 19px; white-space: nowrap; }
header .brand img { width: 36px; height: 36px; border-radius: 9px; }
header nav { display: flex; gap: 14px; justify-content: flex-end; font-size: 15px; white-space: nowrap; }
@media (max-width: 400px) { header .brand { font-size: 17px; } header .brand img { width: 30px; height: 30px; } header nav { gap: 11px; font-size: 14px; } }
header nav a { color: var(--cream); text-decoration: none; opacity: .92; }
header nav a:hover, header nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }

main { padding: 32px 16px 48px; }
h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.15; margin: 8px 0 12px; }
h2 { font-size: 23px; line-height: 1.25; margin: 36px 0 10px; }
h3 { font-size: 18px; margin: 22px 0 6px; }
p, li { color: var(--text); }
.lead { font-size: 19px; color: var(--secondary); }
.muted { color: var(--secondary); font-size: 15px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 22px;
  margin: 18px 0;
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }

/* Home */
.hero { text-align: center; padding-top: 12px; }
.hero img.otter { width: min(62vw, 260px); height: auto; margin: 8px auto 4px; display: block; }
/* A label, not a button: terracotta is for actions only, and there is nothing to tap yet. */
.badge {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  /* 20, not a pill: on a phone the Android line wraps, and a two-line pill is an oval. */
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--secondary);
  font-weight: 700;
  text-wrap: balance;
}
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 28px; }
.features .card { margin: 0; }
.features h3 { margin-top: 0; }

/* Help */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 6px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 9px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--secondary); font-weight: 700; }
.table-wrap { overflow-x: auto; }

footer { border-top: 1px solid var(--border); padding: 22px 16px 34px; }
footer .inner { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: var(--secondary); }
footer a { color: var(--secondary); }

/* Invitation: one card in the middle of the page, opening the app. */
body.invite {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
body.invite main {
  width: min(100%, 440px);
  padding: 32px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
}
body.invite .otter { width: 132px; height: auto; display: block; margin: 0 auto; }
body.invite h1 { margin: 16px 0 10px; font-size: clamp(28px, 8vw, 38px); }
body.invite p { margin: 0 0 24px; color: var(--secondary); line-height: 1.5; }
/* The one action on the site, so the one terracotta button. */
.button {
  display: block;
  min-height: 52px;
  padding: 15px 20px;
  color: var(--cream);
  background: var(--terracotta);
  border-radius: 16px;
  font-weight: 750;
  text-decoration: none;
}
.button[aria-disabled="true"] { opacity: .55; }
body.invite small { display: block; margin-top: 18px; color: var(--secondary); line-height: 1.4; font-size: 15px; }

/* Android waiting list (home). */
.android-toggle { margin: 14px 0 0; }
button.link {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--secondary);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.waitlist { width: min(100%, 460px); margin: 18px auto 0; text-align: left; }
.waitlist label { display: block; font-weight: 700; margin-bottom: 8px; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input[type=email] {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  color: var(--text);
  font: inherit;
}
.waitlist input[type=email]:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }
.waitlist .button { flex: 0 0 auto; min-height: 48px; padding: 12px 20px; border: 0; font: inherit; font-weight: 750; cursor: pointer; }
/* Once it wraps under the field, the button takes the whole width rather than sit left. */
@media (max-width: 480px) { .waitlist .button { flex: 1 1 100%; } }
.waitlist .button:disabled { opacity: .6; cursor: default; }
.waitlist .status { margin: 10px 0 0; font-size: 15px; color: var(--text); }
.waitlist .status:empty { display: none; }
.waitlist .privacy { display: inline-block; margin-top: 10px; font-size: 15px; color: var(--secondary); }
/* Out of sight for people, still in the form for a robot that fills every field. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
