/* Rent Planner product page. One file, no build step, no framework.
 *
 * Colours live in named roles at the top and nowhere else. Light is the base palette; the dark
 * palette is the override applied by the inline theme boot or the reader's toggle. */

:root {
  --bg: #f7f9f6;
  --bg-soft: #eef3ef;
  --surface: #ffffff;
  --surface-2: #f1f6f2;
  --line: #d5e1d9;
  --line-soft: #e4ece7;
  --ink: #11251b;
  --ink-soft: #3d5347;
  --muted: #55645c;
  --accent: #2f8f68;
  --accent-bright: #1f7a56;
  --badge-ink: #0d6b49;
  --hero-sheen: #0d6b49;
  --on-primary: #ffffff;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgb(16 35 26 / 12%);
  --shadow-soft: 0 8px 30px rgb(16 35 26 / 9%);
  --maxw: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0a0f0c;
  --bg-soft: #101713;
  --surface: #141d18;
  --surface-2: #1a2620;
  --line: #24332b;
  --line-soft: #1c2822;
  --ink: #eef6f1;
  --ink-soft: #b9c9c0;
  --muted: #8a9d93;
  --accent-bright: #43c08c;
  --badge-ink: #43c08c;
  --hero-sheen: #8fe6c0;
  --on-primary: #05231a;
  --shadow: 0 24px 60px rgb(0 0 0 / 45%);
  --shadow-soft: 0 8px 30px rgb(0 0 0 / 30%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Reading progress ----------
 * A hairline at the top of the window. It is the one animation that carries information rather
 * than decorating: how much of the page is left. */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; background: transparent; }
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent-bright) 60%, transparent);
}

/* ---------- The phone gate ----------
 * The application is desktop software. A phone gets one screen that says so, rather than a
 * responsive version of a layout built for a window, because the promise is the part a visitor
 * remembers and we cannot keep it. */
.gate { display: none; }

@media (max-width: 620px) {
  .page { display: none; }
  .progress { display: none; }
  .gate {
    /* `minmax(0, 1fr)`: an implicit `auto` grid column grows to the max-content of its item, so a
       card with a max-width ends up wider than the screen it is on and the text is clipped. */
    display: grid; grid-template-columns: minmax(0, 1fr); align-content: center;
    min-height: 100vh; min-height: 100dvh; padding: 28px;
    background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 14%, var(--bg)) 0%, var(--bg) 70%);
  }
  .gate__card {
    width: 100%; max-width: 460px; margin: 0 auto; padding: 30px 26px;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--surface); box-shadow: var(--shadow-soft);
    animation: rise .5s var(--ease) both;
  }
  .gate__mark { display: inline-flex; margin-bottom: 16px; }
  .gate h1 { margin: 0 0 12px; font-size: 1.45rem; line-height: 1.25; letter-spacing: -.02em; }
  .gate p { margin: 0 0 12px; color: var(--ink-soft); font-size: .97rem; }
  /* The gate carries the same controls as the page: a phone reader must be able to change the
     language and the theme before deciding whether the page is worth opening. */
  .gate__controls { display: flex; align-items: center; gap: 8px; margin: 18px 0 4px; }
  .gate__bypass {
    min-height: 36px; padding: 8px 0; border: 0; background: none; cursor: pointer;
    color: var(--accent-bright); font: inherit; font-size: .95rem; font-weight: 600;
    text-decoration: underline; text-underline-offset: 3px;
  }
  /* "View the site anyway": the gate is a hint, not a wall, so a narrow window can still reach
     the page. The class is set before paint by the head script, so no gate flash on a reload. */
  html.gate-dismissed .page { display: block; }
  html.gate-dismissed .gate { display: none; }
  html.gate-dismissed .progress { display: block; }
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.nav__mark { display: inline-flex; border-radius: 9px; overflow: hidden; transition: transform .3s var(--ease-out); }
.nav__brand:hover .nav__mark { transform: rotate(-6deg) scale(1.06); }
.nav__links { display: flex; gap: 24px; margin-left: auto; font-size: .93rem; color: var(--ink-soft); }
.nav__links a { position: relative; padding: 4px 0; transition: color .2s var(--ease); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent-bright); transition: right .28s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }

/* ---------- Language and theme controls ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.site-controls { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.nav__menu {
  display: none; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: 1rem; line-height: 1; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav__menu:hover { border-color: var(--accent); background: var(--surface); }
.lang-select {
  min-height: 36px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 15px) 15px / 5px 5px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 10px) 15px / 5px 5px no-repeat,
    var(--surface-2);
  color: var(--ink); font: inherit; font-size: .82rem; font-weight: 600;
  appearance: none; cursor: pointer;
}
/* One focus treatment for every control, so the page does not mix the UA's blue outline with the
   brand ring by accident (S13). A visible ring is the only thing a keyboard user has. */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent-bright); outline-offset: 2px;
}
.theme-toggle {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: 1rem; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); background: var(--surface); }

/* ---------- Buttons ---------- */
.button {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.button:hover { transform: translateY(-2px); border-color: var(--accent); }
.button--primary {
  border-color: transparent; color: var(--on-primary); font-weight: 750;
  /* Both stops must clear 4.5:1 against white text (S14): the pre-fix bottom stop was --accent
     (4.00:1), so the gradient now lands on a 70/30 mix of the two brand greens (4.87:1). */
  background: linear-gradient(180deg, var(--accent-bright), color-mix(in srgb, var(--accent-bright) 70%, var(--accent)));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 34%, transparent);
}
.button--primary:hover { box-shadow: 0 16px 36px color-mix(in srgb, var(--accent) 44%, transparent); }
/* A shine that crosses the button on hover. Pure decoration, and the reason it is on the primary
   action only is that a page where everything glints has no primary action. */
.button--primary::after {
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 38%), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease-out);
}
.button--primary:hover::after { left: 130%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 24px 40px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -40% 10% auto; height: 780px; pointer-events: none;
  background:
    radial-gradient(46% 46% at 30% 40%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(38% 38% at 72% 26%, color-mix(in srgb, var(--accent-bright) 20%, transparent), transparent 72%);
  filter: blur(30px); opacity: .85;
  animation: drift 18s ease-in-out infinite alternate;
}
/* A faint grid that fades out downward: it gives the hero depth without a background image. */
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
}
.hero__inner { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.eyebrow {
  margin: 0 0 14px; color: var(--accent-bright);
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hero__title {
  margin: 0 0 22px; font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  line-height: 1.06; letter-spacing: -.035em;
}
/* Each line rises out of its own mask, so the heading arrives as two deliberate lines instead of
   a block that fades. `overflow: hidden` on the wrapper is what does the masking. */
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line__in { display: block; transform: translateY(105%); animation: line-in .9s var(--ease-out) forwards; }
.hero__title .line:nth-child(2) .line__in { animation-delay: .12s; }
.hero__title-accent {
  background: linear-gradient(100deg, var(--accent-bright), var(--hero-sheen) 55%, var(--accent-bright));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: line-in .9s var(--ease-out) .12s forwards, sheen 7s linear 1s infinite;
}
.hero__lede { margin: 0 auto 30px; max-width: 660px; color: var(--ink-soft); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin: 18px 0 0; color: var(--muted); font-size: .87rem; }

/* ---------- The app window ---------- */
.hero__shot { max-width: var(--maxw); margin: 54px auto 0; padding: 0 24px; }
/* A screenshot is illustrative and is captured once per interface language, so the UI inside it
   matches the page around it; the localized caption carries its meaning for a reader in any
   language (S20). */
.shot__caption { margin: 12px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.window {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  transform-style: preserve-3d;
}
.window__bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--line-soft);
}
.window__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.window__dot:first-child { background: #e0605d; }
.window__dot:nth-child(2) { background: #dfb356; }
.window__dot:nth-child(3) { background: #55b46a; }
.window__title { margin-left: 10px; color: var(--muted); font-size: .82rem; }

/* ---------- Numbers ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: var(--maxw); margin: 72px auto 0; padding: 0 24px; }
.strip__item {
  display: flex; flex-direction: column; gap: 4px; padding: 24px 20px;
  border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface);
  text-align: center;
}
.strip__item strong { font-size: 1.8rem; letter-spacing: -.02em; color: var(--accent-bright); font-variant-numeric: tabular-nums; }
.strip__item span { color: var(--muted); font-size: .87rem; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 104px 24px 0; }
.section__head { max-width: 660px; margin: 0 auto 46px; text-align: center; }
.section h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 3.1vw, 2.5rem); line-height: 1.14; letter-spacing: -.028em; }
.section__lede { margin: 0; color: var(--ink-soft); }
.section--split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.section__shot { margin: 0; }
.section--reverse .section__copy { order: 2; }
.section--reverse .section__shot { order: 1; }
.section__copy p { color: var(--ink-soft); }
.section__shot img {
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.section__shot img:hover { transform: translateY(-4px) scale(1.012); box-shadow: var(--shadow); }
.section__copy p.section__note { margin-top: 18px; color: var(--muted); font-size: .87rem; }

/* ---------- Booking link preview ----------
 * A page mockup rather than a screenshot. The public page is one more surface that would need a
 * new image in every language, and a CSS card can be translated with the rest of the section. The
 * dates are illustrative; the copy around them carries the claim. */
.link-card {
  max-width: 530px; margin: 0 auto; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.link-card__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2);
}
.link-card__dots { display: flex; gap: 5px; }
.link-card__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.link-card__url { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.link-card__copy {
  margin-left: auto; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--accent-bright); font-size: .75rem;
}
.link-card__body { padding: 26px; }
.link-card__place { margin: 0; color: var(--muted); font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; }
.link-card h3 { margin: 7px 0 5px; font-size: 1.42rem; line-height: 1.2; letter-spacing: -.02em; }
.link-card__meta { margin: 0 0 20px; color: var(--muted); font-size: .8rem; }
.link-card__calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 13px; }
.link-card__calendar .day {
  display: grid; place-items: center; aspect-ratio: 1;
  border: 1px solid var(--line-soft); border-radius: 10px;
  background: var(--surface-2); color: var(--ink-soft); font-size: .8rem;
}
.link-card__calendar .day.is-selected {
  border-color: var(--accent); background: color-mix(in srgb, var(--accent) 30%, var(--surface)); color: var(--ink);
}
.link-card__calendar .day.is-taken {
  border-style: dashed; background: transparent; color: var(--muted); text-decoration: line-through;
}
.link-card__legend { display: flex; gap: 16px; margin-bottom: 18px; color: var(--muted); font-size: .75rem; }
.link-card__legend span { display: inline-flex; align-items: center; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; }
.dot--free { background: var(--accent-bright); }
.dot--taken { border: 1px solid var(--muted); }
.link-card__price {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px;
  background: var(--surface-2); color: var(--ink-soft); font-size: .87rem;
}
.link-card__price strong { color: var(--ink); font-size: 1.05rem; }
.link-card__hint { margin: 12px 0 0; color: var(--muted); font-size: .75rem; }

.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: .95rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 50%; background: color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--accent-bright); font-size: .75rem; font-weight: 800;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.card {
  position: relative; overflow: hidden;
  padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: transform .24s var(--ease), border-color .24s var(--ease), background .24s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--surface-2); }
/* A soft light that follows the pointer. The coordinates arrive as custom properties from
   main.js, which is the only way to animate a radial gradient without repainting the layout. */
.card[data-spotlight]::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent-bright) 16%, transparent), transparent 65%);
  transition: opacity .3s var(--ease);
}
.card[data-spotlight]:hover::before { opacity: 1; }
.card__icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px; background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent-bright); font-size: 1.2rem;
  transition: transform .3s var(--ease-out);
}
.card:hover .card__icon { transform: translateY(-2px) rotate(-4deg) scale(1.06); }
.card h3 { margin: 0 0 8px; font-size: 1.06rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Pricing ---------- */
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: var(--maxw); margin: 0 auto; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 24px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.plan:hover { transform: translateY(-3px); border-color: var(--accent); }
.plan.is-selected, .plan:has(.plan__radio:checked) { border-color: var(--accent-bright); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-bright) 24%, transparent); }
/* The radio is the control; the card is its label. It is laid over the whole card so a click
   anywhere selects the plan, and so the ring below can be drawn on the card the reader sees. */
.plan__radio { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.plan:has(.plan__radio:focus-visible) { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
/* The badge is out of the flow so the Annual card's name, price and features sit on the same
   baselines as the other three cards (S6). */
.plan__badge { position: absolute; top: 18px; right: 18px; margin: 0; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--badge-ink); font-size: .75rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.plan__name { color: var(--ink-soft); font-size: .92rem; font-weight: 700; }
.plan__price { margin-top: 6px; font-size: 2rem; line-height: 1; letter-spacing: -.03em; }
.plan__term { color: var(--muted); font-size: .8rem; }
.plan__features { display: grid; gap: 7px; margin-top: 16px; color: var(--muted); font-size: .84rem; }
.plan__feature { position: relative; padding-left: 16px; }
.plan__feature::before { content: "✓"; position: absolute; left: 0; color: var(--accent-bright); font-size: .75rem; font-weight: 800; }
.pricing__action { display: grid; justify-items: center; gap: 10px; margin-top: 32px; text-align: center; }
.pricing__note { max-width: 640px; margin: 0; color: var(--ink-soft); font-size: .92rem; }
.pricing__note[hidden] { display: none !important; }
.pricing__currency { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.download__free { max-width: 780px; margin: 24px auto 0; color: var(--muted); text-align: center; font-size: .9rem; }
.download__notice { max-width: 780px; margin: 10px auto 0; color: var(--muted); text-align: center; font-size: .82rem; }

/* ---------- Download ---------- */
.download__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 780px; margin: 0 auto; }
.download__card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 18px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.download__card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 22%, transparent); }
.download__os { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--surface-2); color: var(--ink); }
.download__body { display: flex; flex-direction: column; gap: 3px; }
.download__body strong { font-size: 1.08rem; }
.download__body small { color: var(--muted); font-size: .84rem; }
.download__arrow { margin-left: auto; color: var(--accent-bright); font-size: 1.3rem; transition: transform .2s var(--ease); }
.download__card:hover .download__arrow { transform: translateX(4px); }

/* ---------- Footer ---------- */
.footer { margin-top: 110px; border-top: 1px solid var(--line-soft); background: var(--bg-soft); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer__note { margin: 0; color: var(--muted); font-size: .9rem; }
.footer__links { display: flex; gap: 20px; font-size: .9rem; color: var(--ink-soft); }
.footer__links a { padding: 8px 0; }
.footer__links a:hover { color: var(--accent-bright); }

/* ---------- Motion ----------
 * The hidden state is OPT-IN and only when scripting is on. This was `opacity: 0` unconditionally,
 * with the script responsible for revealing, and the page rendered BLANK: an observer that never
 * fires leaves every section invisible. A page that hides its content until a script says
 * otherwise shows nothing when the script is slow, blocked, or simply not the one you tested.
 *
 * With `@media (scripting: enabled)` a reader without JavaScript gets the whole page, and the
 * timeout in main.js is the second net for a script that runs but whose observer never does. */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s var(--ease-out), transform .75s var(--ease-out); }
  .reveal.is-in { opacity: 1; transform: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(3%, 3%, 0) scale(1.08); }
}
@keyframes line-in { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

/* Anyone who asked their system not to move things gets a still page. The animation on the hero
   heading is disabled here too, which is why the heading is written so the resting state (no
   animation) is the visible one. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0ms !important;
    animation-iteration-count: 1 !important; transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line__in { transform: none; }
}

/* Forced colours drops background images, so the gradient-clipped hero line would lose the only
   paint it has. CanvasText keeps the second line visible in Windows High Contrast. */
@media (forced-colors: active) {
  .hero__title-accent {
    color: CanvasText; -webkit-text-fill-color: CanvasText; background: none;
  }
}

/* ---------- Narrow windows ----------
 * Between a phone and a laptop the layout stacks, because a narrow window is not a phone: a small
 * laptop window is no reason to hide the page. */
@media (max-width: 1080px) {
  /* The four anchors move into a compact menu instead of disappearing (S8), and the controls sit
     on the trailing edge instead of stranded next to the logo (S7). */
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    position: absolute; top: calc(100% - 2px); right: 24px;
    margin: 0; padding: 12px 20px;
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface); box-shadow: var(--shadow-soft); font-size: .95rem;
  }
  .nav__links.is-open a { padding: 8px 0; }
  /* The menu button carries the auto margin so the button and the controls after it form the
     trailing cluster (S7); the anchors are gone from the row above 620px. */
  .nav__menu { display: grid; margin-left: auto; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .section--split { grid-template-columns: 1fr; gap: 32px; }
  .section--reverse .section__copy, .section--reverse .section__shot { order: 0; }
  .strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .download__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .plans { grid-template-columns: 1fr; }
  /* Below 620px the page is only reachable through the gate's "view the site anyway", so this is
     the one place the header has to fit a phone. A tight single row keeps the brand, the menu and
     both controls on one line instead of letting the name wrap to two lines and the menu button
     shrink under its own target size. */
  .nav { gap: 12px; padding: 12px 16px; }
  .nav__brand { gap: 8px; }
  .nav__name { white-space: nowrap; }
  .nav__menu, .theme-toggle { width: 32px; height: 32px; }
  .lang-select { min-height: 32px; padding: 0 24px 0 8px; font-size: .75rem; }
  .site-controls { gap: 4px; }
}
