:root {
  --bg: #FBFAF6;
  --surface: #FFFFFF;
  --border: #E7E5DE;
  --text: #1F2937;
  --muted: #6B7280;
  --primary: #2BA890;
  --primary-dark: #1F8772;
  --primary-soft: #E6F4F0;
  --accent: #E9C46A;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .06), 0 2px 4px rgba(15, 23, 42, .04);
  --radius: 12px;
  --radius-lg: 18px;
  --max: 1040px;
  --max-narrow: 720px;
  --space: 1rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
a:hover { border-bottom-color: currentColor; }

h1, h2, h3 {
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 650;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.85rem, 4vw + .8rem, 2.85rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 1.5vw + 1rem, 1.85rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container.narrow { max-width: var(--max-narrow); }

.muted { color: var(--muted); }
.small { font-size: .92rem; }
.text-center { text-align: center; }
.kicker {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: .3rem .75rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(8px);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: none;
}
.brand-mark {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.lang-switch {
  display: inline-flex;
  gap: .15rem;
  background: var(--bg);
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.lang-btn {
  appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  padding: .35rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .05s ease, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--text); }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero {
  padding: 4.5rem 0 3rem;
  background:
    radial-gradient(1200px 320px at 80% -10%, rgba(43, 168, 144, .12), transparent 60%),
    radial-gradient(900px 280px at -10% 0%, rgba(233, 196, 106, .12), transparent 70%);
}
.hero h1 { max-width: 22ch; }
.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
  margin-top: 1rem;
  margin-bottom: 1.75rem;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { padding: 3rem 0; }
section.why { padding-top: 1rem; padding-bottom: 1rem; }
.section-head { margin-bottom: 1.75rem; }
.section-head h2 { margin-bottom: .35rem; }
.section-head p { color: var(--muted); max-width: 60ch; }

/* ---------- card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* ---------- reminders form ---------- */
.form-card { padding: 0.5rem; }
.reminder-list {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.reminder-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.reminder-row:last-child { border-bottom: 0; }
.reminder-row:hover { background: var(--bg); }
.reminder-row input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
  margin: 0;
}
.reminder-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.reminder-name { font-weight: 600; }
.reminder-meta { font-size: .9rem; color: var(--muted); }
.reminder-row input[type="time"] {
  font: inherit;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  padding: .4rem .6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.reminder-row input[type="time"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.reminder-fixed {
  font-size: .85rem;
  color: var(--muted);
  background: var(--bg);
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}
.form-note { text-align: center; max-width: 50ch; }

.howto {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.howto > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.howto > summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform .2s;
}
.howto[open] > summary::after { transform: rotate(45deg); }
.howto-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.howto-list li { color: var(--muted); }
.howto-list strong { color: var(--text); }

/* ---------- tips ---------- */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.tip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.tip h3 { margin-bottom: .4rem; }
.tip p { color: var(--muted); margin: 0; }
.tip:nth-child(2) { border-left-color: var(--accent); }
.tip:nth-child(5) { border-left-color: var(--accent); }

/* ---------- email signup ---------- */
.email-signup .card { padding: 0; }
.email-form {
  display: flex;
  gap: .5rem;
  padding: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.email-form input[type="email"] {
  flex: 1 1 220px;
  font: inherit;
  border: 0;
  background: transparent;
  padding: .65rem 1rem;
  color: var(--text);
}
.email-form input[type="email"]:focus { outline: none; }
.email-form .btn { flex-shrink: 0; }
.email-signup .text-center { margin-top: .85rem; }

/* ---------- faq ---------- */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: .65rem;
}
.faq-item > summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item > summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform .2s;
}
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-item > p { color: var(--muted); margin-top: .65rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  margin-top: 3rem;
}
.site-footer p { margin-bottom: .35rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 1.5rem);
  background: var(--text);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  font-size: .9rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 50;
  max-width: 90vw;
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- responsive tweaks ---------- */
@media (max-width: 540px) {
  body { font-size: 16px; }
  .hero { padding: 2.5rem 0 2rem; }
  .reminder-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    row-gap: .5rem;
  }
  .reminder-row input[type="time"],
  .reminder-fixed {
    grid-column: 2;
    justify-self: start;
  }
  .email-form { border-radius: var(--radius); }
  .email-form input[type="email"] { flex-basis: 100%; }
}

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

/* focus ring */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
