/* GranMemo — granmemo.net
   Large-print by design: the site is set the way the app is set.
   Display: Bricolage Grotesque · Body: Atkinson Hyperlegible (Braille Institute) */

:root {
  --paper: #f4f3ee;
  --paper-2: #eceae2;
  --card: #ffffff;
  --ink: #16212c;
  --ink-2: #3b4754;
  --mute: #687584;
  --line: #dcd9cf;
  --brand: #2f5d8c;
  --brand-deep: #1f3c5f;
  --brand-soft: #e3ecf5;
  --marigold: #e3a83c;
  --marigold-soft: #fbf0d6;
  --leaf: #4f9d6b;
  --leaf-soft: #e2f1e7;
  --bell: #d9573a;
  --bell-soft: #fbe4dc;
  --radius: 26px;
  --radius-s: 16px;
  --shadow: 0 24px 60px rgba(22, 33, 44, .12);
  --shadow-s: 0 8px 22px rgba(22, 33, 44, .07);
  --display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 0% -8%, rgba(47, 93, 140, .13), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(227, 168, 60, .14), transparent 58%);
  background-repeat: no-repeat;
}

a { color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--marigold-soft); }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.015em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(44px, 7.2vw, 92px); font-weight: 800; letter-spacing: -.03em; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.025em; }
h3 { font-size: clamp(22px, 2vw, 27px); }
p { margin: 0; }
.lead { font-size: clamp(21px, 1.7vw, 25px); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--marigold); }
.muted { color: var(--mute); }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
section { padding: clamp(72px, 9vw, 128px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 28px; border-radius: 18px; border: 2px solid transparent;
  font-family: var(--display); font-size: 20px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(47, 93, 140, .28); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-bell { background: var(--marigold); color: #3a2a06; box-shadow: 0 10px 24px rgba(227, 168, 60, .32); }
.btn-bell:hover { background: #ecb44a; color: #3a2a06; }
.btn .bell-ico { font-size: 24px; line-height: 1; display: inline-block; transform-origin: 50% 0; animation: sway 2.6s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: rotate(0) } 10% { transform: rotate(14deg) } 20% { transform: rotate(-12deg) } 30% { transform: rotate(8deg) } 40% { transform: rotate(-5deg) } 50% { transform: rotate(0) } }
@media (prefers-reduced-motion: reduce) { .btn .bell-ico { animation: none; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 243, 238, .82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(22,33,44,.06);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: -.02em; }
.logo svg { width: 40px; height: 40px; }
.logo small { font-family: var(--body); font-weight: 400; color: var(--mute); font-size: 16px; margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 18px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }
.nav-links a.btn { min-height: 48px; padding: 0 20px; font-size: 17px; border-radius: 14px; color: #fff; }
.nav-links a.btn:hover { color: #fff; }
.nav-links .short { display: none; }
@media (max-width: 760px) {
  .nav-links li:not(.keep) { display: none; }
  .logo small { display: none; }
  .logo { font-size: 22px; gap: 10px; }
  .nav-in { gap: 12px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 17px; }
  .nav-links a.btn { min-height: 44px; padding: 0 14px; font-size: 16px; }
  .nav-links .long { display: none; }
  .nav-links .short { display: inline; }
  .wrap { width: min(var(--max), 100% - 40px); }
  .phone { width: min(330px, 100%); }
}

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 .line { display: block; }
.hero h1 .hl { color: var(--brand); }
.hero .lead { margin-top: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--mute); font-size: 17px; }
.hero-foot span::before { content: "✓"; color: var(--leaf); font-weight: 700; margin-right: 8px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-phone { order: -1; } }

/* ---------- phone mockup ---------- */
.hero-phone { display: grid; place-items: center; }
.phone {
  width: min(370px, 100%); aspect-ratio: 9 / 19.2; border-radius: 54px; padding: 12px;
  background: #111; box-shadow: var(--shadow), inset 0 0 0 2px #333;
  position: relative; isolation: isolate;
}
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 112px; height: 32px; border-radius: 20px; background: #000; z-index: 3; }
.screen {
  width: 100%; height: 100%; border-radius: 44px; overflow: hidden; position: relative;
  background: radial-gradient(700px 320px at 100% 0%, rgba(227,168,60,.14), transparent 60%), #f4f1ea;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--body); color: #1c2430;
  display: flex; flex-direction: column;
}
.screen > * { flex-shrink: 0; }
.s-status { display: flex; justify-content: space-between; padding: 18px 26px 0; font-size: 14px; font-weight: 700; }
.s-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 20px 12px; }
.s-head b { display: block; font-size: 28px; letter-spacing: -.02em; }
.s-head small { display: block; font-size: 14px; color: #707d8c; margin-top: 2px; }
.s-add { background: #2f5d8c; color: #fff; border: 0; border-radius: 14px; font-weight: 800; font-size: 17px; padding: 12px 18px; box-shadow: 0 8px 18px rgba(47,93,140,.3); }
.s-hero {
  margin: 4px 14px 0; border-radius: 22px; padding: 16px 18px 14px; color: #fff;
  background: linear-gradient(150deg, #335f8d, #2a4f78); box-shadow: 0 18px 34px rgba(0,0,0,.2);
  position: relative; overflow: hidden;
}
.s-hero::after { content: ""; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.08); }
.s-hero small { font-size: 12.5px; font-weight: 700; opacity: .9; }
.s-hero .s-time { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 4px 0 2px; }
.s-hero .s-sub { font-size: 13.5px; opacity: .92; }
.s-row { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.14); border-radius: 14px; padding: 10px 8px 10px 12px; font-weight: 800; font-size: 15px; }
.s-chk { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #2a4f78; display: grid; place-items: center; font-size: 16px; }
.s-list-head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px 8px; font-weight: 800; font-size: 16px; }
.s-list-head span { font-size: 12.5px; font-weight: 700; color: #707d8c; }
.s-item { display: flex; align-items: center; gap: 12px; margin: 0 14px 8px; padding: 10px 12px; background: #fff; border-radius: 16px; box-shadow: 0 6px 16px rgba(28,49,78,.06); }
.s-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: 0 0 auto; }
.s-item .t { flex: 1; min-width: 0; }
.s-item .t b { display: block; font-size: 15px; }
.s-item .t small { display: block; font-size: 12px; color: #707d8c; }
.s-tag { font-size: 12px; font-weight: 800; padding: 6px 9px; border-radius: 999px; background: #eef1f5; color: #47535f; white-space: nowrap; }
.s-tag.done { background: #e2f1e7; color: #2f7a4c; }
.s-tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 10px 22px; background: #fbfaf7; border-top: 1px solid #e3e8ee; text-align: center; font-size: 12px; font-weight: 800; color: #707d8c; }
.s-tabs span { display: block; font-size: 20px; margin-bottom: 2px; }
.s-tabs .on { color: #2f5d8c; }
.s-item.dim { opacity: .75; }
.s-fade { position: absolute; left: 0; right: 0; bottom: 70px; height: 60px; background: linear-gradient(to bottom, rgba(244,241,234,0), rgba(244,241,234,.95)); z-index: 1; pointer-events: none; }

/* ---------- loop ---------- */
.loop { background: var(--ink); color: #f2f0e9; }
.loop .eyebrow { color: #f5c95b; }
.loop .eyebrow::before { background: #f5c95b; }
.loop .lead { color: #c9cfd6; }
.loop h2 { color: #fff; }
.loop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.loop-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 30px 28px 28px; position: relative; }
.loop-card .t { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f5c95b; }
.loop-card .big { font-family: var(--display); font-size: clamp(44px, 4.6vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 10px 0 14px; }
.loop-card h3 { color: #fff; margin-bottom: 10px; }
.loop-card p { color: #c9cfd6; font-size: 18px; }
.loop-card .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.loop-card .act { font-family: var(--display); font-weight: 700; font-size: 16px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.loop-card .act.done { background: #fff; color: var(--ink); }
.loop-arrow { position: absolute; top: 40px; right: -18px; width: 36px; height: 36px; border-radius: 50%; background: #f5c95b; color: var(--ink); display: grid; place-items: center; font-weight: 800; z-index: 2; }
.loop-note { margin-top: 28px; font-size: 18px; color: #aab3bd; max-width: 60em; }
@media (max-width: 900px) { .loop-grid { grid-template-columns: 1fr; } .loop-arrow { display: none; } }

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 30px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.feat.span-4 { grid-column: span 4; }
.feat.span-6 { grid-column: span 6; }
.feat.span-8 { grid-column: span 8; }
.feat .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--brand-soft); }
.feat p { color: var(--ink-2); font-size: 18px; }
.feat .demo { margin-top: auto; padding-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; background: var(--paper-2); font-weight: 700; font-size: 16px; }
.repeat-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 360px; }
.repeat-row span { display: grid; place-items: center; height: 44px; border-radius: 12px; background: var(--paper-2); font-weight: 700; font-size: 16px; }
.repeat-row span.on { background: var(--brand); color: #fff; }
.sizes { display: flex; align-items: baseline; gap: 18px; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
.sizes b:nth-child(1) { font-size: 24px; } .sizes b:nth-child(2) { font-size: 34px; } .sizes b:nth-child(3) { font-size: 48px; }
.sizes span { color: var(--mute); font-family: var(--body); font-weight: 400; font-size: 16px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 330px; }
.cal b { display: grid; place-items: center; height: 40px; border-radius: 10px; font-size: 16px; font-weight: 700; color: var(--ink-2); position: relative; }
.cal b.h { font-size: 12px; color: var(--mute); height: 22px; }
.cal b.dot::after { content: ""; position: absolute; bottom: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--marigold); }
.cal b.today { background: var(--brand); color: #fff; }
@media (max-width: 900px) { .feat.span-4, .feat.span-6, .feat.span-8 { grid-column: span 12; } .feat { min-height: 0; } }

/* ---------- themes ---------- */
.themes { padding-top: 0; }
.theme-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.theme { border-radius: var(--radius-s); padding: 18px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(0,0,0,.06); }
.theme .sw { border-radius: 12px; padding: 12px 14px; color: #fff; font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.theme .sw i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12px; }
.theme b { font-family: var(--display); font-size: 19px; }
.theme small { display: block; color: inherit; opacity: .75; font-size: 15px; }
@media (max-width: 900px) { .theme-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .theme-strip { grid-template-columns: 1fr; } }

/* ---------- family ---------- */
.family { background: var(--brand-soft); }
.fam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.fam-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.fam-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; font-size: 19px; color: var(--ink-2); }
.fam-steps li::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; display: grid; place-items: center; }
.fam-steps b { color: var(--ink); }
.fam-note { margin-top: 26px; padding: 18px 20px; border-radius: var(--radius-s); background: rgba(255,255,255,.7); border: 1px solid rgba(47,93,140,.18); font-size: 17px; color: var(--ink-2); }
.pair { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.pair-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pair-top b { font-family: var(--display); font-size: 20px; }
.pair-top span { font-size: 15px; color: var(--mute); }
.code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 22px 0; }
.code b { display: grid; place-items: center; aspect-ratio: 1 / 1.15; border-radius: 14px; background: var(--paper-2); font-family: var(--display); font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; color: var(--brand-deep); }
.pair-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; text-align: center; font-size: 16px; color: var(--ink-2); }
.pair-flow .dev { background: var(--paper-2); border-radius: 14px; padding: 14px 10px; }
.pair-flow .dev span { display: block; font-size: 28px; }
.pair-flow .arr { font-size: 26px; color: var(--brand); }
@media (max-width: 900px) { .fam-grid { grid-template-columns: 1fr; } }

/* ---------- trust / status ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust { border-radius: var(--radius); padding: 30px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.trust .big { font-family: var(--display); font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; color: var(--brand-deep); margin-bottom: 10px; }
.trust p { color: var(--ink-2); font-size: 18px; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }

.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.status-list li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); font-size: 19px; color: var(--ink-2); }
.status-list li:last-child { border-bottom: 1px solid var(--line); }
.status-list .st { font-family: var(--display); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; }
.st.live { background: var(--leaf-soft); color: #2a6d43; }
.st.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(79,157,107,.25); }
.st.soon { background: var(--marigold-soft); color: #8a5d0b; }
.st.soon::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--marigold); }
.st.later { background: var(--paper-2); color: var(--mute); }
.st.later::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #b9bec6; }
.status-list b { color: var(--ink); }
@media (max-width: 600px) { .status-list li { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- CTA band ---------- */
.cta { padding: 0 0 clamp(72px, 9vw, 128px); }
.cta-card { border-radius: 34px; padding: clamp(40px, 6vw, 72px); background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-card::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.07); }
.cta-card h2 { color: #fff; }
.cta-card p { color: #d6e2ef; margin-top: 14px; font-size: 20px; max-width: 30em; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; position: relative; z-index: 1; }
.cta-actions .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.cta-actions .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
@media (max-width: 800px) { .cta-card { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer { padding: 40px 0 56px; color: var(--mute); font-size: 17px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-weight: 700; }
.foot-links a:hover { color: var(--brand); }

/* ---------- alarm takeover (signature) ---------- */
.alarm { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 600px at 50% 0%, #3a6ea0, #1f3c5f 70%); color: #fff; }
.alarm[hidden] { display: none; }
.alarm-in { width: min(720px, 100%); text-align: center; display: grid; gap: 14px; justify-items: center; }
.alarm .bell { font-size: clamp(72px, 12vw, 120px); line-height: 1; transform-origin: 50% 0; animation: ring .9s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(0,0,0,.3)); }
@keyframes ring { 0%,100% { transform: rotate(0) } 15% { transform: rotate(16deg) } 35% { transform: rotate(-14deg) } 55% { transform: rotate(10deg) } 75% { transform: rotate(-6deg) } }
@media (prefers-reduced-motion: reduce) { .alarm .bell { animation: none; } }
.alarm .lbl { font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 16px; color: #f5c95b; }
.alarm h2 { font-size: clamp(38px, 6.4vw, 72px); color: #fff; max-width: 14em; }
.alarm .speaking { font-size: 19px; color: #cfe0f1; min-height: 1.6em; }
.alarm .note { font-size: 18px; color: #cfe0f1; max-width: 34em; }
.alarm .note b { color: #fff; }
.alarm .acts { display: grid; grid-template-columns: 1fr; gap: 12px; width: min(460px, 100%); margin-top: 10px; }
.alarm .acts .btn { min-height: 72px; font-size: 24px; border-radius: 22px; }
.alarm .acts .btn-done { background: #fff; color: var(--brand-deep); }
.alarm .acts .btn-done:hover { background: #f5c95b; color: #3a2a06; }
.alarm .acts .btn-sub { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.alarm .acts .btn-sub:hover { background: rgba(255,255,255,.22); color: #fff; }
.alarm .acts .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alarm .end { margin-top: 10px; background: none; border: 0; color: #cfe0f1; font-family: var(--body); font-size: 17px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.alarm .end:hover { color: #fff; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 120;
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 18px; box-shadow: var(--shadow); transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- contact page ---------- */
.contact-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(72px, 9vw, 128px); }
.mail-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: var(--radius-s); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-s); text-decoration: none; color: var(--ink); }
.mail-card:hover { border-color: var(--brand); }
.mail-card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; font-size: 26px; flex: 0 0 auto; }
.mail-card .tx { flex: 1; }
.mail-card .tx b { display: block; font-family: var(--display); font-size: 19px; }
.mail-card .tx span { font-size: 16px; color: var(--mute); }
.mail-card .addr { font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.02em; color: var(--brand); word-break: break-all; }
.contact-side { display: grid; gap: 16px; }
.contact-side h2 { margin-bottom: 8px; }
.answers { margin-top: 24px; padding: 22px 24px; border-radius: var(--radius-s); background: var(--marigold-soft); border: 1px solid rgba(227,168,60,.35); color: var(--ink-2); font-size: 18px; }
.answers ul { margin: 8px 0 0; padding-left: 22px; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 700; font-size: 18px; }
.form input, .form textarea { font: inherit; font-size: 19px; padding: 16px 18px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.form textarea { min-height: 170px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; min-width: 200px; }
.form-msg { font-size: 18px; padding: 14px 18px; border-radius: 12px; }
.form-msg.ok { background: var(--leaf-soft); color: #245d3a; }
.form-msg.err { background: var(--bell-soft); color: #8a2f1b; }
.form-msg[hidden] { display: none; }
.form-sent { text-align: center; padding: 30px 10px; display: grid; gap: 12px; justify-items: center; }
.form-sent .big { font-size: 64px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf .big { font-family: var(--display); font-size: clamp(90px, 16vw, 180px); font-weight: 800; letter-spacing: -.05em; color: var(--brand); line-height: 1; }
