/* Subscription Cancel LTD — site styles */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* Used only to reproduce the MietSofort logo */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --bg: #faf8f4;
  --surface: #ffffff;
  --paper: #f0ebe1;
  --sand: #e9e2d4;
  --mist: #dce4ef;
  --rule: #dcd5c7;
  --rule-strong: #b3aa99;
  --ink: #111318;
  --ink-2: #3e3c38;
  --ink-3: #6a655d;
  --accent: #1c3d6e;
  --accent-hover: #132c52;
  --accent-soft: #d6e0ee;
  --navy: #0f2140;
  --navy-2: #172d52;
  --on-navy: #eef1f6;
  --on-navy-2: #a9b6cb;
  --on-navy-rule: rgba(238, 241, 246, 0.14);
  --live: #237a52;
  --pending: #a0671a;
  --ms-green: #16b68e;

  --container: 1200px;
  --gutter: 40px;
  --header-h: 76px;
  --radius: 12px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --shadow: 0 1px 2px rgba(23, 22, 26, 0.04), 0 2px 8px rgba(23, 22, 26, 0.04);
  --shadow-lg: 0 2px 4px rgba(23, 22, 26, 0.04), 0 40px 80px -32px rgba(23, 22, 26, 0.3);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.09  0 0 0 0 0.08  0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: light;
}

@media (max-width: 900px) {
  :root {
    --gutter: 28px;
    --radius-lg: 20px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 18px;
    --header-h: 62px;
    --radius-lg: 16px;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 32px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure,
address {
  margin: 0;
  padding: 0;
  font-style: normal;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

::selection {
  background: var(--accent-soft);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.muted {
  color: var(--ink-3);
}

/* Subtle grain texture on tinted panels */
.grain {
  position: relative;
  isolation: isolate;
}

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: var(--grain);
  background-size: 180px 180px;
  pointer-events: none;
}

/* ---------- Type helpers ---------- */

.overline {
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.overline + h2,
.overline + .h2,
.overline + .statement,
.overline + .place-word {
  margin-top: 16px;
}

.label {
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead {
  color: var(--ink-2);
  font-size: clamp(1.06rem, 1.35vw, 1.2rem);
  line-height: 1.62;
}

.statement {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 450;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.body-text {
  max-width: 38em;
  color: var(--ink-2);
}

.statement + .body-text {
  margin-top: 26px;
}

.body-text p + p {
  margin-top: 1em;
}

.body-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Links & buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 50px;
  padding: 0 26px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button .arr {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.button:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.button:hover .arr {
  transform: translateX(4px);
}

.button-ghost {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--ink);
}

.button-ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.button-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
}

/* Underline that redraws from the left on hover */
.more {
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.more:hover {
  color: var(--accent);
  animation: redraw 0.5s var(--ease);
}

@keyframes redraw {
  from { background-size: 0% 1px; }
  to { background-size: 100% 1px; }
}

.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.link:hover {
  text-decoration-thickness: 2px;
}

.ext {
  font-size: 0.85em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(15, 33, 64, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-name {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.wordmark-legal {
  margin-left: 12px;
  padding: 4px 0 4px 12px;
  border-left: 1px solid var(--rule-strong);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
}

.nav {
  display: flex;
  align-items: center;
  align-self: stretch;
}

.nav-list {
  display: flex;
  align-self: stretch;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
  display: flex;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Active page and hover: a navy bar on the bottom edge of the header */
.nav-link::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-link[aria-current="page"]::after,
.nav-item:hover .nav-link::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-item:hover .nav-link,
.nav-link[aria-current="page"] {
  color: var(--accent);
}

.chev {
  width: 10px;
  height: 6px;
  color: var(--ink-3);
  transition: transform 0.3s var(--ease), color 0.2s ease;
}

.nav-item:hover .chev,
.nav-item:focus-within .chev {
  color: var(--accent);
  transform: rotate(180deg);
}

.button-nav {
  position: relative;
  margin-left: 28px;
  padding-left: 20px;
  padding-right: 18px;
  gap: 10px;
}

/* Hairline divider between the menu items and the Contact button */
.button-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -21px;
  width: 1px;
  height: 22px;
  margin-top: -11px;
  background: var(--rule-strong);
}

/* Dropdown menus (hover or keyboard focus; work without JavaScript) */
.menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2;
  padding-top: 10px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.menu-center {
  left: 50%;
  margin-left: -200px;
}

.menu-right {
  right: 0;
  left: auto;
}

.nav-item:hover .menu,
.nav-item:focus-within .menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s;
}

.nav-item.is-dismissed .menu {
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
}

.nav-item.is-dismissed .chev {
  transform: none;
}

.menu-panel {
  display: grid;
  width: 330px;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 2px 4px rgba(15, 33, 64, 0.04), 0 28px 60px -20px rgba(15, 33, 64, 0.32);
}

.menu-panel-brands {
  width: 400px;
}

.menu-link,
.menu-brand {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.menu-link:hover,
a.menu-brand:hover {
  background: var(--paper);
}

.menu-link b {
  font-size: 15px;
  font-weight: 600;
}

.menu-link:hover b {
  color: var(--accent);
}

.menu-link span,
.menu-brand-text {
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.45;
}

.menu-brand {
  gap: 8px;
  padding: 16px;
}

.menu-brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-brand .ms-logo {
  font-size: 21px;
}

.menu-brand .ms-logo svg {
  width: 23px;
  height: 23px;
}

.menu-brand-top b {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.menu-brand-soon {
  margin-top: 4px;
  border: 1px dashed var(--rule-strong);
}

.menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 13px 16px 7px;
  border-top: 1px solid var(--rule);
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}

.menu-foot .arr {
  transition: transform 0.3s var(--ease);
}

.menu-foot:hover .arr {
  transform: translateX(4px);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px 0 18px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
}

.burger {
  position: relative;
  display: grid;
  gap: 5px;
  width: 16px;
}

.burger i {
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .burger i:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger i:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Mobile menu opens as an overlay below the header, without moving the page */
.mobile-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  box-shadow: 0 30px 60px -20px rgba(15, 33, 64, 0.35);
  animation: menu-in 0.25s var(--ease);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav .container {
  padding-block: 8px 24px;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.m-group {
  padding-block: 18px 6px;
  border-bottom: 1px solid var(--rule);
}

.m-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.m-group a,
.m-soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  text-decoration: none;
}

.m-label + a {
  margin-top: 4px;
}

.m-soon {
  color: var(--ink-3);
}

.m-foot {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding-top: 22px;
}

.m-foot .button {
  width: 100%;
}

.m-mail {
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 961px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .wordmark-name {
    font-size: 19px;
  }

  .wordmark-legal {
    margin-left: 9px;
    padding-left: 9px;
  }

  .nav-toggle-text {
    display: none;
  }

  .nav-toggle {
    width: 42px;
    padding: 0;
    justify-content: center;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(56px, 8vw, 112px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px clamp(32px, 5vw, 80px);
  align-items: end;
}

.display {
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  font-weight: 450;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-side .lead {
  max-width: 30em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.hero-side .actions {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Load-in motion for the hero (CSS only, ends fully visible) */
.rise {
  animation: rise 1s var(--ease) both;
}

.rise-2 { animation-delay: 0.08s; }
.rise-3 { animation-delay: 0.18s; }
.rise-4 { animation-delay: 0.28s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Stage: real product screenshots on a tinted panel ---------- */

.stage-wrap {
  margin-top: clamp(56px, 7vw, 96px);
}

.stage {
  padding: clamp(24px, 4.4vw, 60px) clamp(24px, 5.6vw, 76px) 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mist);
}

.stage-figure {
  position: relative;
  padding-right: 9%;
}

/* macOS Safari window. Everything is sized in cqw (percent of the window width)
   so the chrome scales exactly with the screenshot at every screen size. */
.mac {
  container-type: inline-size;
}

.safari {
  overflow: hidden;
  border-radius: 1.1cqw 1.1cqw 0 0;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(23, 22, 26, 0.14), var(--shadow-lg);
}

.safari-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 3.5cqw;
  padding: 0 1.3cqw;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f4f4f6;
}

.safari-left {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
}

.lights {
  display: flex;
  gap: 0.6cqw;
}

.lights i {
  width: 0.8cqw;
  height: 0.8cqw;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.06cqw rgba(0, 0, 0, 0.14);
}

.lights i:nth-child(2) {
  background: #febc2e;
}

.lights i:nth-child(3) {
  background: #28c840;
}

.safari-icons {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  color: #8e8e93;
}

.safari-icons svg {
  width: 1.15cqw;
  height: 1.15cqw;
}

.safari-right {
  justify-content: flex-end;
  gap: 1.6cqw;
  color: #6e6e73;
}

.address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45cqw;
  width: 34cqw;
  height: 2.3cqw;
  border-radius: 0.7cqw;
  background: rgba(0, 0, 0, 0.055);
  color: #3c3c43;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--sans);
  font-size: 1.05cqw;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.address svg {
  width: 0.8cqw;
  height: 0.8cqw;
  color: #8e8e93;
}

.safari img {
  width: 100%;
  aspect-ratio: 16 / 8.6;
  object-fit: cover;
  object-position: top;
}

/* iPhone (current Pro shape: thin even bezels, Dynamic Island, large corner radius).
   cqw here is a percent of the phone's own width, so it scales as one object. */
.phone {
  container-type: inline-size;
  position: absolute;
  top: 9%;
  right: 0;
  width: 23%;
}

.iphone {
  position: relative;
  padding: 2.9cqw;
  border-radius: 16.4cqw;
  background: #121214;
  box-shadow:
    inset 0 0 0 0.55cqw #5d5d62,
    inset 0 0 0 0.95cqw #1d1d20,
    0 2px 4px rgba(23, 22, 26, 0.08),
    0 44px 70px -24px rgba(23, 22, 26, 0.45);
}

/* Side buttons */
.iphone::before,
.iphone::after {
  content: "";
  position: absolute;
  width: 0.9cqw;
  border-radius: 0.6cqw;
  background: #4a4a4f;
}

.iphone::before {
  top: 25%;
  right: -0.7cqw;
  height: 15%;
}

.iphone::after {
  top: 21%;
  left: -0.7cqw;
  height: 22%;
  background:
    linear-gradient(#4a4a4f, #4a4a4f) 0 0 / 100% 30% no-repeat,
    linear-gradient(#4a4a4f, #4a4a4f) 0 45% / 100% 25% no-repeat,
    linear-gradient(#4a4a4f, #4a4a4f) 0 100% / 100% 25% no-repeat;
}

.iphone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 402 / 874;
  border-radius: 13.4cqw;
  background: #3e4a58;
}

.ios-status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 14.4cqw;
  background: #3e4a58;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--sans);
}

.ios-time {
  position: absolute;
  top: 3.2cqw;
  left: 11cqw;
  font-size: 4.1cqw;
  font-weight: 600;
  line-height: 7.5cqw;
  letter-spacing: -0.01em;
}

.island {
  position: absolute;
  top: 2.6cqw;
  left: 50%;
  width: 29.5cqw;
  height: 8.7cqw;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.ios-icons {
  position: absolute;
  top: 3.2cqw;
  right: 8.5cqw;
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  height: 7.5cqw;
}

.ios-icons svg {
  height: 2.75cqw;
  width: auto;
}

.ios-icons svg:last-child {
  height: 3cqw;
}

.iphone-screen img {
  position: absolute;
  top: 14.4cqw;
  left: 0;
  width: 100%;
  height: auto;
}

.stage-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 15px;
}

.stage-caption strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 600px) {
  .stage-figure {
    padding-right: 14%;
  }

  .phone {
    top: 7%;
    width: 31%;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(80px, 10vw, 136px);
}

.section-tight {
  padding-block: clamp(48px, 6vw, 88px);
}

.section-paper {
  background: var(--paper);
}

.section-rule {
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head h2,
.h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 460;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.intro {
  color: var(--ink-2);
  font-size: 1.06rem;
}

@media (max-width: 960px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Rounded tinted panel */
.panel {
  padding: clamp(28px, 5vw, 72px);
  border-radius: var(--radius-lg);
  background: var(--sand);
}

/* Three pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.pillar {
  padding: 28px 32px 4px;
  border-left: 1px solid var(--rule);
}

.pillar:first-child {
  padding-left: 0;
  border-left: 0;
}

.pillar:last-child {
  padding-right: 0;
}

.num {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
}

.pillar h3 {
  margin-top: 36px;
  font-size: clamp(1.35rem, 2vw, 1.55rem);
}

.pillar p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 16px;
}

@media (max-width: 860px) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
  }

  .pillar,
  .pillar:first-child {
    padding: 24px 0 28px;
    border-left: 0;
    border-top: 1px solid var(--rule-strong);
  }

  .pillar h3 {
    margin-top: 14px;
  }
}

/* ---------- Brand cards ---------- */

.brand-cards {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px;
}

.brand-cards-single {
  grid-template-columns: minmax(0, 1fr);
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 3.2vw, 40px);
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.brand-card > p {
  max-width: 34em;
  color: var(--ink-2);
}

.brand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 15.5px;
}

.brand-meta dt {
  color: var(--ink-3);
  font-size: 13.5px;
}

.brand-card-soon {
  border-style: dashed;
  border-color: var(--rule-strong);
  background:
    repeating-linear-gradient(-45deg, transparent 0 11px, rgba(23, 22, 26, 0.035) 11px 12px),
    var(--bg);
  box-shadow: none;
}

.brand-soon {
  font-size: clamp(1.5rem, 2.4vw, 1.8rem);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: auto;
  padding-top: 8px;
}

.ms-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", var(--sans);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ms-logo svg {
  width: 30px;
  height: 30px;
  color: var(--ms-green);
}

@media (max-width: 900px) {
  .brand-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Status ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(44, 122, 87, 0.14);
}

.status-pending::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--pending);
}

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.principle {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 20px;
  padding: 32px 40px 36px 0;
  border-bottom: 1px solid var(--rule);
}

.principle:nth-child(even) {
  padding-right: 0;
  padding-left: 40px;
  border-left: 1px solid var(--rule);
}

.principle .big-n {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
}

.principle h3 {
  font-size: clamp(1.3rem, 2vw, 1.5rem);
}

.principle p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 16px;
}

@media (max-width: 860px) {
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .principle,
  .principle:nth-child(even) {
    padding: 28px 0;
    border-left: 0;
  }
}

@media (max-width: 480px) {
  .principle {
    grid-template-columns: minmax(0, 1fr);
  }

  .principle .big-n {
    font-size: 34px;
  }
}

/* ---------- Cards, details ---------- */

.card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card > .label + * {
  margin-top: 14px;
}

.details > div {
  display: grid;
  grid-template-columns: minmax(118px, 1fr) minmax(0, 1.75fr);
  gap: 20px;
  padding-block: 14px;
  border-top: 1px solid var(--rule);
  font-size: 15.5px;
}

.details > div:first-child {
  padding-top: 4px;
  border-top: 0;
}

.details dt {
  color: var(--ink-3);
}

.details dd a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.details-open > div:first-child {
  padding-top: 14px;
  border-top: 1px solid var(--rule-strong);
}

.details-open > div:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 560px) {
  .details > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-grid .intro {
  margin-top: 20px;
}

.contact-rows > div {
  padding-block: 20px;
  border-top: 1px solid var(--rule);
}

.contact-rows > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.contact-rows > div:last-child {
  padding-bottom: 0;
}

.contact-rows dt {
  color: var(--ink-3);
  font-size: 14px;
}

.contact-rows dd {
  margin-top: 6px;
  font-size: 16px;
}

.email-big {
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

.email-big:hover {
  color: var(--accent-hover);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cards-3 .card {
  display: flex;
  flex-direction: column;
}

.cards-3 h2 {
  margin-top: 14px;
  font-size: 1.5rem;
}

.cards-3 p,
.cards-3 address {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 16px;
}

.cards-3 address {
  color: var(--ink);
}

.cards-3 .card-foot {
  margin-top: auto;
  padding-top: 22px;
}

.cards-3 .email-big {
  font-size: 1.3rem;
}

@media (max-width: 960px) {
  .cards-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Page header (sub-pages) ---------- */

.page-head {
  padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 96px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-3);
  font-size: 14px;
}

.crumbs a {
  color: var(--ink-3);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-head .display {
  max-width: 15em;
  margin-top: clamp(28px, 4vw, 48px);
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
}

.page-head .lead {
  max-width: 38em;
  margin-top: 24px;
}

.page-head .updated {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 14.5px;
}

/* ---------- About ---------- */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
}

@media (max-width: 960px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

.place {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.4;
}

.place + .details {
  margin-top: 24px;
}

.place-word {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(4.2rem, 13vw, 10.5rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.place-meta {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- Brands page ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  list-style: none;
}

.feature-grid li {
  padding-block: 18px;
  border-top: 1px solid var(--rule);
}

.feature-grid li:nth-child(-n + 2) {
  border-top: 1px solid var(--rule-strong);
}

.feature-grid .num {
  font-size: 14px;
}

.feature-grid b {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
}

.feature-grid span:not(.num) {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 15.5px;
}

.label + .feature-grid {
  margin-top: 14px;
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-grid li:nth-child(2) {
    border-top-color: var(--rule);
  }
}

.note {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px clamp(40px, 6vw, 96px);
}

.note h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
}

.note p {
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .note {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Legal pages ---------- */

.legal-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.toc ol {
  margin-top: 14px;
  list-style: none;
  border-left: 1px solid var(--rule);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 16px;
  border-left: 1px solid transparent;
  color: var(--ink-2);
  font-size: 14.5px;
  text-decoration: none;
}

.toc a:hover {
  border-left-color: var(--ink);
  color: var(--ink);
}

@media (max-width: 960px) {
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    display: none;
  }
}

.prose {
  max-width: 44em;
  color: var(--ink-2);
}

.prose h2 {
  margin-top: 56px;
  color: var(--ink);
  font-size: 1.65rem;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin-top: 14px;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 4px;
}

.prose a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.prose .card {
  margin-bottom: 8px;
  color: var(--ink);
}

.prose .card + h2 {
  margin-top: 56px;
}

/* ---------- 404 ---------- */

.not-found {
  padding-block: clamp(40px, 5vw, 64px) clamp(96px, 12vw, 160px);
}

.not-found .display {
  margin-top: clamp(28px, 4vw, 48px);
}

.not-found .lead {
  max-width: 32em;
  margin-top: 24px;
}

.not-found .actions {
  margin-top: 32px;
}

/* ---------- Footer (deep navy) ---------- */

.site-footer {
  padding-top: clamp(64px, 8vw, 104px);
  background: var(--navy);
  color: var(--on-navy);
  font-size: 15px;
}

.site-footer ::selection {
  background: var(--navy-2);
  color: #fff;
}

.site-footer :focus-visible {
  outline-color: #fff;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px clamp(40px, 6vw, 96px);
}

.site-footer .wordmark {
  color: #fff;
}

.site-footer .wordmark-legal {
  border-left-color: rgba(238, 241, 246, 0.32);
  color: var(--on-navy-2);
}

.footer-about p {
  max-width: 22em;
  margin-top: 16px;
  color: var(--on-navy-2);
}

.footer-mail {
  display: inline-block;
  margin-top: 26px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(238, 241, 246, 0.35);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 0.2s ease;
}

.footer-mail:hover {
  border-bottom-color: #fff;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-about,
.footer-cols > div {
  padding-top: 20px;
  border-top: 1px solid var(--on-navy-rule);
}

.footer-cols h2 {
  color: var(--on-navy-2);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-cols ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  list-style: none;
}

.footer-cols a {
  color: var(--on-navy);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size 0.35s var(--ease);
}

.footer-cols a:hover {
  color: #fff;
  background-size: 100% 1px;
}

.footer-cols address {
  margin-top: 18px;
  color: var(--on-navy);
  line-height: 1.65;
}

.footer-soon {
  display: grid;
  color: var(--on-navy-2);
}

.footer-soon small {
  font-size: 12.5px;
  opacity: 0.8;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(56px, 7vw, 88px);
  padding-block: 24px 32px;
  border-top: 1px solid var(--on-navy-rule);
  color: var(--on-navy-2);
  font-size: 13.5px;
}

.to-top {
  color: var(--on-navy);
  text-decoration: none;
}

.to-top:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }
}

/* ---------- Spacing helpers ---------- */

.after-kicker {
  margin-top: 22px;
}

.after-logo {
  margin-top: 22px;
}

.after-text {
  margin-top: 28px;
}

.after-place {
  margin-top: 32px;
}

/* ---------- Scroll reveal (only with JS; content is visible without it) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js [data-reveal="2"] { transition-delay: 0.1s; }
.js [data-reveal="3"] { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .toc {
    display: none;
  }
}
