:root {
  --ink: #18312b;
  --muted: #4c5f55;
  --green: #185b46;
  --deep: #103f32;
  --pale: #e2eee5;
  --paper: #fbfaf5;
  --line: #cad5ca;
  --warm: #f3e9c6;
  --warm-line: #c9b57a;
  --on-deep: #d3e6da;
  --focus: #a94b07;
  color-scheme: light;
  font-family: 'Atkinson Hyperlegible Next', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  accent-color: var(--green);
  caret-color: var(--green);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
::selection { background: var(--pale); color: var(--deep); }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
img { display: block; }

.top, main, .foot { width: min(1100px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px; }
.mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; white-space: nowrap; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.dots { display: inline-grid; grid-template-columns: repeat(3, 9px); gap: 3px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.dots i:nth-child(2) { background: var(--warm-line); }
.dots i:nth-child(3) { background: #7fa894; }
.signin { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; text-decoration: none; }
.signin:hover { border-color: var(--green); }

.board { padding-block: clamp(8px, 3vw, 28px) 8px; }
h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 5.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
h1 span { display: block; color: var(--green); }
.lead { margin: 0 0 20px; max-width: 60ch; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); }

.sentence { background: var(--deep); color: #fff; border-radius: 22px; padding: clamp(16px, 2.8vw, 26px) clamp(20px, 4vw, 38px); }
#sentence-text { margin: 0; font-size: clamp(1.6rem, 4.6vw, 3.1rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; }
#sentence-note { margin: 10px 0 0; color: var(--on-deep); font-size: 1.02rem; max-width: 60ch; }
.sentence.fresh #sentence-text { animation: arrive 320ms cubic-bezier(.16, 1, .3, 1); }
@keyframes arrive { from { opacity: .35; transform: translateY(10px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }

.persons { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 12px; }
.person { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; min-width: 76px; padding: 6px 20px 6px 8px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 1.1rem; font-weight: 750; color: var(--ink); cursor: pointer; }
.person:hover { border-color: var(--green); }
.person[aria-pressed="true"] { background: var(--pale); border-color: var(--green); }
.person[data-person="ich"][aria-pressed="true"] { background: var(--warm); border-color: var(--warm-line); }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.8vw, 18px); }
.card { display: grid; justify-items: center; gap: 8px; padding: 14px 10px 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; transition: transform 160ms cubic-bezier(.16, 1, .3, 1), box-shadow 160ms ease-out, border-color 160ms ease-out; }
.card img { width: min(100%, 124px); height: auto; aspect-ratio: 1; object-fit: contain; }
.card span { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 800; text-align: center; }
.card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16, 63, 50, .12); }
.card.chosen { border-color: var(--green); border-width: 3px; padding: 13px 9px 15px; }

.go { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.primary, .secondary { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 14px; font-weight: 800; font-size: 1.08rem; text-decoration: none; }
.primary { background: var(--green); color: #fff; border: 2px solid var(--green); }
.primary:hover { background: var(--deep); }
.secondary { background: #fff; color: var(--green); border: 2px solid var(--green); }
.secondary:hover { background: var(--pale); }

h2 { margin: 0 0 18px; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.015em; }
h3 { margin: 26px 0 6px; font-size: 1.2rem; }
.how, .plans, .trust { padding-top: clamp(56px, 9vw, 96px); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); }
.how-grid > div > h3:first-child { margin-top: 0; }
.how p { margin: 0; max-width: 62ch; }
.kinds { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.kinds li { display: grid; grid-template-columns: 18px auto 1fr; align-items: baseline; column-gap: 12px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-weight: 800; }
.kinds li::before { content: ''; width: 14px; height: 14px; border-radius: 4px; background: var(--k); align-self: center; }
.kinds small { font-weight: 400; color: var(--muted); font-size: .98rem; }
.k-act { --k: #185b46; } .k-thing { --k: #2c5f9e; } .k-people { --k: #8a4f9e; }
.k-feel { --k: #c2552f; } .k-say { --k: #b08a1e; } .k-group { --k: #5d6b66; }

.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 2.5vw, 24px); }
.plan-premium ul { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 24px; }
.primary.on-deep { background: #fff; color: var(--deep); border-color: #fff; }
.primary.on-deep:hover { background: var(--pale); }
.plan { padding: clamp(20px, 3vw, 32px); border: 2px solid var(--line); border-radius: 22px; background: #fff; display: grid; align-content: start; gap: 6px; }
.plan h3 { margin: 0; }
.price { margin: 0 0 6px; font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.price small { font-size: 1rem; font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 8px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.plan li::before { content: ''; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23185b46' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.plan .primary { justify-self: start; }
.plan-premium { background: var(--deep); border-color: var(--deep); color: #fff; }
.plan-premium li::before { background-color: #2a5c4c; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-premium .fine { color: var(--on-deep); margin: 0; font-size: .98rem; }
.plan-premium a { color: #fff; }

.trust { padding-bottom: clamp(48px, 8vw, 80px); }
.trust p { max-width: 64ch; margin: 0; font-size: 1.08rem; }

.foot { border-top: 1px solid var(--line); padding-block: 22px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .98rem; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { min-height: 44px; display: inline-flex; align-items: center; }

.again { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; padding: 6px 16px; border: 2px solid rgba(255,255,255,.55); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.again:hover { background: rgba(255,255,255,.1); }
.again svg { width: 20px; height: 20px; }
.person img { width: 36px; height: 36px; border-radius: 50%; background: #fff; object-fit: contain; }
.sentence :focus-visible, .plan-premium :focus-visible { outline-color: #fff; }
@media (min-width: 641px) {
  .sentence { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; }
  #sentence-text, #sentence-note { grid-column: 1; }
  .again { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
@media (max-height: 820px) and (min-width: 641px) {
  h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 8px; }
  .lead { margin-bottom: 14px; }
  #sentence-text { font-size: clamp(1.5rem, 3.6vw, 2.5rem); }
  .persons { margin: 10px 0; }
  .card { padding-block: 10px 12px; }
  .card.chosen { padding-block: 9px 11px; }
  .card img { width: min(100%, 88px); }
  .go { margin-top: 14px; }
  .board { padding-top: 4px; }
}
@media (max-width: 360px) {
  .top { gap: 8px; }
  .mark { gap: 8px; font-size: 1rem; }
  .signin { padding-inline: 10px; font-size: .95rem; }
}
@media (max-width: 860px) {
  .how-grid, .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .go a { flex: 1 1 100%; }
  .person { flex: 1 1 0; min-width: 0; gap: 6px; padding: 6px 12px 6px 6px; justify-content: center; }
  .person img { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card:hover { transition: none; transform: none; }
  .sentence.fresh #sentence-text { animation: none; }
}
