/* HerForm. Colours from ideas/HerForm/brand/tokens.json (v3). */
@font-face { font-family: "Estedad"; font-weight: 300; font-display: swap; src: url("/static/fonts/Estedad-Light.woff2") format("woff2"); }
@font-face { font-family: "Estedad"; font-weight: 400; font-display: swap; src: url("/static/fonts/Estedad-Regular.woff2") format("woff2"); }
@font-face { font-family: "Estedad"; font-weight: 700; font-display: swap; src: url("/static/fonts/Estedad-Bold.woff2") format("woff2"); }
@font-face { font-family: "Estedad"; font-weight: 800; font-display: swap; src: url("/static/fonts/Estedad-ExtraBold.woff2") format("woff2"); }

:root {
  --surface: #fff6ef;
  --surface-alt: #f6dcd6;
  --ink: #2b0f17;
  --muted: #7a5560;
  --brand: #6e1a2d;
  --on-brand: #fff6ef;
  --rose: #d9798f;
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1a0f12;
    --surface-alt: #2c1a1f;
    --ink: #fff6ef;
    --muted: #c9a9b1;
    --brand: #8e2a42;
    --rose: #e59aac;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Estedad", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--surface);
}
main, .top, .foot { max-width: 640px; margin-inline: auto; padding-inline: 16px; }
a { color: var(--brand); }
@media (prefers-color-scheme: dark) { a { color: var(--rose); } }

.top { padding-block: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; }

.hero { padding-block: 32px 24px; }
h1 { font-weight: 800; font-size: clamp(28px, 7vw, 40px); line-height: 1.45; margin: 0 0 12px; color: var(--brand); text-wrap: balance; }
@media (prefers-color-scheme: dark) { h1 { color: var(--ink); } }
h2 { font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; }

.btn {
  display: inline-block; padding: 14px 22px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 700;
  min-height: 48px;
}
.btn:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

.card { background: var(--surface-alt); border-radius: var(--radius); padding: 20px; margin-block: 16px; }
.list, .steps { margin: 0; padding-inline-start: 22px; }
.list li, .steps li { margin-block: 6px; }
.steps { list-style-type: persian; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 8px 12px; }
.plan { background: var(--surface); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; align-items: flex-start; }
.plan.best { outline: 2px solid var(--brand); }
.plan .label { color: var(--muted); font-size: 15px; }
.plan .amount { font-weight: 800; font-size: clamp(19px, 5.6vw, 24px); }
.plan .unit { font-size: 14px; color: var(--muted); }
.note { margin: 0; font-size: 15px; }

/* Forms */
.form h1 { font-size: 26px; margin-bottom: 8px; }
.form form { display: flex; flex-direction: column; gap: 6px; margin-block: 8px; }
.form label { font-weight: 700; margin-top: 8px; }
.form input[type="text"], .form input:not([type]), .form input[type="password"] {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--muted); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 17px; text-align: left;
}
.form input:focus-visible { outline: 3px solid var(--rose); outline-offset: 1px; border-color: var(--brand); }
.pw { display: flex; gap: 8px; }
.pw input { flex: 1; min-width: 0; }
.show { min-height: 48px; padding-inline: 12px; border-radius: 12px; border: 1.5px solid var(--muted);
  background: transparent; color: var(--ink); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.form .btn { margin-top: 12px; border: 0; font: inherit; font-weight: 700; cursor: pointer; text-align: center; }
.btn.ghost { background: transparent; color: var(--ink); outline: 1.5px solid var(--muted); }
.btn.danger { background: #a3263a; }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
.alt { font-size: 15px; margin: 12px 0 0; }
.alert { background: var(--surface); border-inline-start: 4px solid #a3263a; padding: 10px 14px; border-radius: 10px; margin: 8px 0; }
.ok { background: var(--surface); border-inline-start: 4px solid #2f7a4f; padding: 10px 14px; border-radius: 10px; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 26px; font-weight: 700; letter-spacing: 2px;
  background: var(--surface); padding: 14px; border-radius: 12px; text-align: center; user-select: all; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400 !important; }
.check input { width: 22px; height: 22px; }
details.card summary { font-weight: 700; cursor: pointer; min-height: 32px; }

.prose h1 { font-size: 28px; }
.prose h2 { margin-top: 20px; }

.foot { padding-block: 24px 40px; color: var(--muted); font-size: 14px; }
.foot p { margin: 4px 0; }
