/* Warm and calm: soft cream ground, white cards, one warm accent for highlights,
   calm teal for every action. Large type and 44px+ tap targets for readers of every age. */
:root {
  --bg: #fbf5ec;
  --surface: #fffdf9;
  --ink: #2b241e;
  --muted: #5c5148;
  --line: #e6daca;
  --field-line: #8a7b6c;
  --accent: #0e6464;
  --accent-ink: #ffffff;
  --focus: #9e4614;
  --error: #a3261b;
  --ok-bg: #e4f2ec;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1714;
    --surface: #27211c;
    --ink: #f4ece2;
    --muted: #cdbfaf;
    --line: #40372f;
    --field-line: #9c8d7e;
    --accent: #7ad3c7;
    --accent-ink: #10221f;
    --focus: #f2a673;
    --error: #ff9c90;
    --ok-bg: #193a33;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { font-size: 125%; } /* 20px base */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  padding-inline: 16px;
}
.wrap { max-width: 38rem; margin: 0 auto; padding-block: 1.5rem 3rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: .5rem 1rem; z-index: 9; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-size: .9rem; }

h1 { font-size: 2rem; line-height: 1.2; margin: 2rem 0 .75rem; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 .75rem; text-wrap: balance; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.5rem; }
.free { display: inline-block; font-weight: 700; color: var(--accent); }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.features li { display: grid; grid-template-columns: 2.25rem 1fr; gap: .75rem; align-items: start; }
.features svg { width: 2.25rem; height: 2.25rem; }
.features strong { display: block; }
.features span { color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; margin-top: 1rem; }

form { display: grid; gap: 1.25rem; }
label, legend { font-weight: 700; display: block; margin-bottom: .35rem; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type=text], input[type=email] {
  width: 100%; font: inherit; padding: .75rem .9rem; min-height: 3rem;
  border: 2px solid var(--field-line); border-radius: 8px; background: var(--surface); color: var(--ink);
}
fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; align-items: center; gap: .75rem; min-height: 3rem; padding: .6rem .9rem;
  border: 2px solid var(--field-line); border-radius: 8px; margin-top: .5rem; cursor: pointer; font-weight: 400; }
.choice input { width: 1.4rem; height: 1.4rem; accent-color: var(--accent); flex: none; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 1.4rem; height: 1.4rem; margin-top: .2rem; accent-color: var(--accent); flex: none; }

button {
  font: inherit; font-weight: 700; min-height: 3.25rem; padding: .75rem 1.25rem; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; width: 100%;
}
.err { color: var(--error); font-weight: 700; margin: .35rem 0 0; }
.has-err input[type=text], .has-err input[type=email], .has-err .choice { border-color: var(--error); }
.alert { border-left: 5px solid var(--error); padding: .75rem 1rem; background: var(--surface); }
.ok { background: var(--ok-bg); border-radius: 12px; padding: 1.25rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.notice p { margin: .35rem 0; }

input[type=password], input[type=date], input[type=number] {
  width: 100%; font: inherit; padding: .75rem .9rem; min-height: 3rem;
  border: 2px solid var(--field-line); border-radius: 8px; background: var(--surface); color: var(--ink);
}
.has-err input[type=password], .has-err input[type=date], .has-err input[type=number] { border-color: var(--error); }

.try { margin: 1.5rem 0 2rem; }
.try h2 { margin-top: 0; }
.try .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.try .button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .75rem 1.25rem; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.try .button-link.secondary { background: var(--surface); color: var(--ink); border: 2px solid var(--line); }
