/* SaveSave website. Brand (BRAND.md): navy is home, Inter 400, 700, 800, gold ring, mint point of power.
   Icons are SaveSave gold (Andy, 26 November 2026), not the family's default mint.
   Colour comes from the mark and the wordmark. No gradients, glows or tinted panels. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* From kit/tokens/tokens.css (Night). */
  --ground: #0b1a30;
  --surface: #12243f;
  --surface-raised: #172c4b;
  --line: #22385a;
  --ink: #f4f6fa;
  --ink-secondary: #b8c6d8;
  --brand: #f5c542; /* brand-savesave: marks, wordmark, headings 24px and up */
  --brand-text: #f5c542; /* brand-savesave-text: anything smaller */
  --brand-hover: #e3b22f;
  --dot: #4cc9a0; /* dot-savesave: the point of power only. Never text, never icons. */
  --focus: #3cc8f0;
  --on-brand: #081627;
  --field: #6b84a6;
  --error: #ffb4ab;
  --max: 68rem;
  --gutter: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: var(--brand-text);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The name: always one line, second Save in gold. */
.save {
  color: var(--brand);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  white-space: nowrap;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

.logo:hover {
  color: var(--ink);
}

.logo img {
  width: 2rem;
  height: 2rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-nav {
  order: 3;
  width: 100%;
}

.site-nav:empty,
.site-nav ul:empty {
  display: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--ink-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}

.button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.button-small {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}

/* Layout */

main {
  flex: 1;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--gutter);
}

.narrow {
  max-width: 40rem;
}

.center {
  text-align: center;
}

.divided {
  border-top: 1px solid var(--line);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero {
  padding-top: 2.25rem;
}

.hero-mark {
  display: block;
  width: 6.5rem;
  height: 6.5rem;
  margin: 0 auto;
}

.hero-title {
  margin-top: 1.75rem;
  font-size: clamp(2.6rem, 11vw, 5.25rem);
}

.section-title {
  font-size: clamp(1.9rem, 6.5vw, 3rem);
}

.lede {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  color: var(--ink-secondary);
  font-size: 1.1rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-title {
  font-size: clamp(2.1rem, 7vw, 3.25rem);
}

.page-lede {
  margin: 1rem 0 0;
  color: var(--ink-secondary);
  font-size: 1.1rem;
}

.prose p {
  margin: 1.1rem 0 0;
  color: var(--ink-secondary);
  font-size: 1.075rem;
}

.prose p.strong {
  color: var(--ink);
  font-weight: 700;
}

.actions {
  margin-top: 2rem;
}

/* Privacy */

.policy h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.policy p,
.policy ul {
  color: var(--ink-secondary);
}

.policy ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.policy li + li {
  margin-top: 0.4rem;
}

/* Guides */

.guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.unused-group-title {
  margin-top: 3rem;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.group-title + .guide-list {
  margin-top: 1rem;
}

.guide h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.guide h3 a {
  color: var(--ink);
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
}

.guide h3 a:hover {
  color: var(--brand);
}

.guide p:last-child {
  margin: 0.75rem 0 0;
  color: var(--ink-secondary);
}

.eyebrow a {
  color: inherit;
}

.article .prose h2,
.sources-title {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.article .prose h3 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.article .prose ul,
.sources {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--ink-secondary);
}

.sources li + li,
.article .prose li + li {
  margin-top: 0.4rem;
}

/* A line worth remembering. Set apart by size and weight, with a plain rule above and below. */
.prose p.pull {
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.article-cta {
  margin-top: 3rem;
}

.article-cta .actions {
  margin-top: 1.25rem;
}

.article .small-print {
  margin-top: 0.75rem;
}

.article .guide-note {
  margin-top: 2rem;
}

.closing h2 {
  font-size: clamp(2rem, 7vw, 3.25rem);
}

/* Signature motion: the point of power travels once round the ring and settles. Once only. */

.mark-ring {
  fill: none;
  stroke: var(--brand);
  stroke-width: 14;
}

.mark-dot {
  fill: var(--dot);
}

.orbit {
  transform-origin: 32px 32px;
}

.go .orbit {
  animation: find 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes find {
  from {
    transform: rotate(-420deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .go .orbit {
    animation: none;
  }
}

/* Forms */

.form {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  text-align: left;
}

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

.field {
  display: grid;
  gap: 0.4rem;
}

.field-row {
  display: grid;
  gap: 1rem;
}

label,
legend {
  font-weight: 700;
  font-size: 0.95rem;
}

.optional {
  color: var(--ink-secondary);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--field);
  border-radius: 0.85rem;
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

[aria-invalid="true"] {
  border-color: var(--error) !important;
  outline: 2px solid var(--error);
  outline-offset: 1px;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

/* What are you saving for? One tap. Each choice is an icon and a label; the chosen one also gets a tick. */

.goal-legend {
  width: 100%;
  padding: 0;
  text-align: center;
  font-size: clamp(1.9rem, 6.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.goals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.goal {
  position: relative;
  display: block;
}

.goal input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.goal-face {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  height: 100%;
  min-height: 6.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  cursor: pointer;
}

.goal-face svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.goal:hover .goal-face {
  border-color: var(--field);
}

.goal input:checked + .goal-face {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 2px var(--brand);
  background: var(--surface-raised);
}

/* The tick: shape, not colour, says which one is chosen. */
.goal input:checked + .goal-face::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 0.55rem;
  height: 1rem;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.goal input:focus-visible + .goal-face {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* The goal on a progress ring. Thinner than the logo (6 of 64) with rounded ends, so it never passes for the mark. */

.echo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.echo[hidden] {
  display: none;
}

.echo svg {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
}

.ring-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 6;
}

.ring-fill {
  fill: none;
  stroke: var(--brand);
  stroke-width: 6;
  stroke-linecap: round;
}

.echo-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.echo-text {
  margin: 0.25rem 0 0;
  color: var(--ink-secondary);
}

.invite {
  margin: 0;
  font-size: 1.1rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

.consent input {
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.15rem 0 0;
  accent-color: var(--brand);
}

.small-print {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.875rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  margin: 0;
  font-weight: 700;
}

.form-message:empty {
  display: none;
}

.form-message.error {
  color: var(--error);
}

.form-message.preview,
.to-confirm,
.preview-strip {
  border: 1px dashed #ffb547;
  color: #ffb547;
}

.form-message.preview {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 400;
}

.success {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--brand);
  border-radius: 1.25rem;
  background: var(--surface);
  text-align: center;
}

.success h2 {
  font-size: 1.6rem;
}

.success p {
  margin: 0.75rem 0 0;
  color: var(--ink-secondary);
}

/* Review notes: visible only while the site is being reviewed; remove before publishing. */
.to-confirm {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
}

.preview-strip {
  margin: 0;
  padding: 0.5rem 1rem;
  border-width: 0 0 1px;
  text-align: center;
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter);
  display: grid;
  gap: 1rem;
  color: var(--ink-secondary);
  font-size: 0.9rem;
}

.footer-inner .logo {
  font-size: 1.3rem;
}

.footer-inner .logo img {
  width: 1.6rem;
  height: 1.6rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links:empty {
  display: none;
}

@media (min-width: 40rem) {
  :root {
    --gutter: 1.5rem;
  }

  .site-nav {
    order: 0;
    width: auto;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .card {
    padding: 2rem;
  }
}

/* ---- Second iteration (27 November 2026): varied compositions, tools, gentle motion ---- */

.eyebrow.center,
.lede.center {
  text-align: center;
}

.lede-second {
  margin-top: 0.75rem;
  font-size: 1rem;
}

.button-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--brand);
}

.button-quiet:hover {
  background: var(--surface-raised);
  color: var(--ink);
}

/* A band: the same navy family, one step up (the surface token), edge to edge. Breaks up the page without a new colour. */
.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band .card {
  background: var(--surface-raised);
}

/* Two columns that share a row on wide screens. */
.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

/* The centrepiece: goals on one side, the invitation on the other. */
.centre-form {
  margin-top: 0;
}

.goal-set {
  min-width: 0;
}

.goal-legend {
  text-align: left;
}

.goal-hint {
  margin: 0.75rem 0 0;
  color: var(--ink-secondary);
  font-size: 1.05rem;
}

.goals {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.goal:last-child {
  grid-column: 1 / -1;
}

.goal-face {
  min-height: 6rem;
}

.goal-face > span {
  padding-right: 1.25rem;
}

.goal input:checked + .goal-face svg {
  animation: pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.goal input:checked + .goal-face::after {
  animation: tick 0.25s ease-out;
}

@keyframes pop {
  50% {
    transform: scale(1.25) rotate(-6deg);
  }
}

@keyframes tick {
  from {
    opacity: 0;
    transform: rotate(45deg) scale(0.4);
  }
}

.invite-title {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.invite {
  margin-top: 0.5rem;
  color: var(--ink-secondary);
  font-size: 1rem;
}

.echo:not([hidden]) .ring-first {
  animation: draw 0.9s ease-out both;
}

@keyframes draw {
  from {
    stroke-dasharray: 0 163.4;
  }
}

/* What we're building: three steps in a row, joined by a line. No boxes, so it reads as a story, not a grid of cards. */
.story {
  display: grid;
  gap: 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.story-step {
  position: relative;
  padding-top: 1.25rem;
  border-top: 3px solid var(--line);
}

.story-step::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--brand);
}

.story-step svg,
.teaser > svg,
.feature svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-step h3,
.feature h3 {
  margin-top: 0.5rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.story-step p,
.feature p {
  margin: 0.5rem 0 0;
  color: var(--ink-secondary);
}

/* Says, in words, that something isn't available yet. */
.story-step .tag,
.tag {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--field);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-note {
  margin-top: 1.5rem;
}

.actions.center {
  text-align: center;
}

/* Calculator teaser: one wide row. */
.teaser {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.teaser-title {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  letter-spacing: -0.025em;
}

.teaser p {
  margin: 0.5rem 0 0;
  color: var(--ink-secondary);
}

/* Results: plain bars. Every bar has its label and its percentage in words, so nothing relies on colour. */
.results {
  display: grid;
  gap: 0.9rem;
  max-width: 40rem;
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
}

.result-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
}

.result-bar {
  height: 0.6rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.result-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  transition: width 0.9s ease-out;
}

/* Calculator */
.calc-result {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
}

.calc-ring {
  width: 9rem;
  height: 9rem;
}

#calc-ring-fill {
  transition: stroke-dasharray 0.7s ease-out;
}

.calc-percent {
  margin: 0;
  color: var(--ink-secondary);
  font-weight: 700;
}

.calc-answer {
  margin: 0.25rem 0 0;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.calc-date {
  margin: 0 0 0.75rem;
  color: var(--ink-secondary);
  font-size: 1.1rem;
}

.calc-date:empty,
.calc-percent:empty {
  display: none;
}

/* About */
.about-card h2 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.about-card h2:not(:first-child) {
  margin-top: 1.5rem;
}

.about-card p {
  margin: 0.4rem 0 0;
  color: var(--ink-secondary);
}

/* Guides library */
.library-tools {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.library-tools[hidden] {
  display: none;
}

.library-tools .field {
  max-width: 28rem;
}

input[type="search"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--field);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--field);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

/* The chosen filter is filled, underlined and announced as pressed. */
.chip[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.guide-list {
  margin-top: 1.5rem;
}

.guide {
  display: flex;
  flex-direction: column;
}

.guide[hidden] {
  display: none;
}

.guide .eyebrow {
  margin-bottom: 0.5rem;
}

.guide p:last-child,
.guide-meta {
  margin: auto 0 0;
  padding-top: 1rem;
  color: var(--ink-secondary);
  font-size: 0.85rem;
  font-weight: 700;
}

.guide h3 + p {
  margin: 0.6rem 0 0;
  color: var(--ink-secondary);
}

/* Sister brand: a quiet next step, set apart by a rule and a heading. */
.next-step {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--brand);
}

.next-step h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.next-step p {
  color: var(--ink-secondary);
}

.next-step .eyebrow {
  color: var(--brand-text);
}

.brand-name {
  white-space: nowrap;
  font-weight: 700;
}

.closing .lede {
  max-width: 34rem;
}

/* Celebration when someone joins: a few dots in the brand's two colours fly out once. */
.celebrate {
  position: relative;
  overflow: visible;
}

.burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.burst i {
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  margin: -0.3rem;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0;
  animation: burst 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.burst i:nth-child(3n) {
  background: var(--dot);
}

.burst i:nth-child(4n) {
  background: var(--ink);
}

.burst i:nth-child(1) { --x: 0rem; --y: -9rem; }
.burst i:nth-child(2) { --x: 5rem; --y: -8rem; }
.burst i:nth-child(3) { --x: 9rem; --y: -4.5rem; }
.burst i:nth-child(4) { --x: 11rem; --y: 0.5rem; }
.burst i:nth-child(5) { --x: 9rem; --y: 5rem; }
.burst i:nth-child(6) { --x: 4.5rem; --y: 7.5rem; }
.burst i:nth-child(7) { --x: -0.5rem; --y: 8.5rem; }
.burst i:nth-child(8) { --x: -5rem; --y: 7.5rem; }
.burst i:nth-child(9) { --x: -9rem; --y: 5rem; }
.burst i:nth-child(10) { --x: -11rem; --y: 0.5rem; }
.burst i:nth-child(11) { --x: -9rem; --y: -4.5rem; }
.burst i:nth-child(12) { --x: -5rem; --y: -8rem; }

@keyframes burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.4);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(1);
  }
}

/* Sections ease in as they arrive. Only when scripts run, and never when someone has asked for less motion. */
.motion .reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.motion .reveal.seen {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .goal input:checked + .goal-face svg,
  .goal input:checked + .goal-face::after,
  .echo:not([hidden]) .ring-first,
  .burst i {
    animation: none;
  }

  .burst {
    display: none;
  }

  #calc-ring-fill,
  .result-bar i {
    transition: none;
  }

  .motion .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 40rem) {
  .goals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .goal:last-child {
    grid-column: auto;
  }

  .story,
  .feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teaser {
    grid-template-columns: auto 1fr auto;
  }

  /* Editorial: the first guide leads, the others sit beside it. */
  .guide-list.editorial {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .guide-list.editorial .guide:first-child h3 {
    font-size: 1.75rem;
  }
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .centre-form {
    grid-template-columns: 1.25fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .invite-card {
    position: sticky;
    top: 1.5rem;
    margin-top: 0;
  }
}

/* ---- Third iteration (27 November 2026): say less, mean more, show more ---- */

/* Gold is for the one emotional word in a heading. Mint is for progress and little wins. */
.ring-fill,
.result-bar i {
  stroke: var(--dot);
}

.result-bar i {
  background: var(--dot);
}

/* The goal tap: a thin ring fills once, then the line for that goal arrives. No dot, so it never looks like the mark. */
.echo.play .ring-win {
  animation: fill 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.echo.play .echo-title {
  animation: arrive 0.5s ease-out 0.45s both;
}

@keyframes fill {
  from {
    stroke-dasharray: 0 163.4;
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
}

.echo-title {
  font-size: 1.35rem;
}

.story-step h3 {
  font-size: 1.75rem;
}

.story-step p {
  font-size: 1.1rem;
}

.glimpse {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--ink-secondary);
  font-size: 1.1rem;
}

.glimpse .tag {
  margin: 0 0 0 0.5rem;
  vertical-align: middle;
}

/* About: a story, not a grid. */
.story-page {
  text-align: center;
}

.story-title {
  margin-top: 1rem;
  font-size: clamp(2.6rem, 10vw, 4.75rem);
}

.story-line {
  margin: 1.5rem 0 2.5rem;
  color: var(--ink-secondary);
  font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  line-height: 1.35;
}

.promises {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin: 2.5rem 0 0.75rem;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.signature {
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
}

.footer-inner .to-confirm {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .echo.play .ring-win,
  .echo.play .echo-title {
    animation: none;
  }
}

/* The emotional word or phrase in a heading stays together on one line. */
h1 .save,
h2 .save {
  white-space: nowrap;
}

/* ---- Family layout (Andy, 27 November 2026): the same frame on all four sites ---- */

/* Hero: words on the left, the mark large on the right. On a phone the mark sits small above the headline. */
.hero {
  display: grid;
  gap: 1.5rem;
  text-align: left;
}

.hero .hero-mark {
  width: 6.5rem;
  height: 6.5rem;
  margin: 0;
}

.hero .hero-title {
  margin-top: 0;
}

.hero .lede {
  margin-left: 0;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* The signature line: small spaced capitals, under the hero buttons and again in the footer. */
.signature {
  margin: 1.75rem 0 0;
  color: var(--ink-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-inner .signature {
  margin: 0;
}

/* Rhythm: plain navy sections and raised bands take turns. Thin lines live only inside a section. */
.divided,
.closing,
.band {
  border-top: 0;
  border-bottom: 0;
}

.band .card,
.band .goal-face {
  background: var(--surface-raised);
}

.band .goal input:checked + .goal-face {
  background: var(--ground);
}

.band input[type="text"],
.band input[type="email"] {
  background: var(--surface);
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero .hero-mark {
    order: 2;
    width: 15rem;
    height: 15rem;
  }
}

/* The Chillcrest family strip, in every footer (Andy, 1 December 2026). PowerFull is not shown. */
.family { margin: 1.5rem 0 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.family .family-h { margin: 0 0 0.9rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-secondary); }
.family ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.family li { flex: 1 1 14rem; display: flex; }
.family a { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.45rem; padding: 0.9rem 1.1rem; min-width: 0; border: 1px solid var(--line); border-radius: 1rem; background: var(--ground); color: var(--ink-secondary); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.family a:hover, .family a:focus-visible { border-color: var(--brand); transform: translateY(-2px); }
.family img { display: block; height: 1.6rem; width: auto; max-width: 100%; }
.family span { font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { .family a { transition: none; } .family a:hover { transform: none; } }
