/* contentumcms.com. Brand layer: Bramble, Blush, Fig, Petal; Literata for headlines, Atkinson Hyperlegible Next for text.
   Mobile first, no JavaScript. The one motif: the open frame of the mark, with the block that drops into its corner. */

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/literata.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/atkinson-next.woff2") format("woff2");
}

:root {
  --bramble: #9E1F63;
  --blush: #F28AB8;
  --fig: #2A1622;
  --petal: #FBF4F7;
  --ink: #1E1A1D;

  --bg: #FFFFFF;
  --bg-tint: var(--petal);
  --text: var(--ink);
  --muted: #5E4F58;
  --accent: var(--bramble);         /* text, links, filled buttons */
  --on-accent: #FFFFFF;
  --accent-hover: #84164F;
  --soft: #F6E2EC;                  /* icon wells, selected tags */
  --line: #EADDE4;
  --frame: var(--bramble);
  --block: var(--blush);
  --device: #FFFFFF;
  --device-bar: #F4EEF1;
  --shadow: 0 1px 2px rgb(42 22 34 / .06), 0 24px 48px -24px rgb(42 22 34 / .28);

  --font-display: "Literata", Georgia, serif;
  --font-text: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 1rem;
  --band: clamp(4rem, 3rem + 5vw, 7.5rem);
  --settle: cubic-bezier(0.2, 0.9, 0.25, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1015;
    --bg-tint: #22151C;
    --text: #F6EEF2;
    --muted: #CDB9C4;
    --accent: var(--blush);
    --on-accent: var(--fig);
    --accent-hover: #F7A9CB;
    --soft: #3A2131;
    --line: #3A2933;
    --frame: var(--blush);
    --block: #FFFFFF;
    --device: #241A20;
    --device-bar: #2E2229;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 28px 56px -24px rgb(0 0 0 / .7);
  }
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-text);
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; line-height: 1.1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.9rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text > * { max-width: 46rem; }
@media (min-width: 48em) { :root { --gutter: 2rem; } }

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

/* ---------- buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .7rem 1.35rem; border-radius: 10px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-text); text-decoration: none; text-align: center;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--quiet { border-color: var(--line); color: var(--text); }
.btn--quiet:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #FFFFFF; color: var(--bramble); }
.btn--light:hover { background: var(--petal); }
.btn--small { min-height: 40px; padding: .45rem .95rem; font-size: .95rem; }

/* ---------- header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-block: .85rem; }
.logo { display: block; margin-right: auto; border-radius: 6px; }
.logo img { width: 160px; height: auto; }
.site-nav { order: 3; flex-basis: 100%; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav a { display: inline-block; padding-block: .35rem; color: var(--text); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 currentColor; }
@media (min-width: 48em) {
  .site-header__inner { flex-wrap: nowrap; gap: 2rem; padding-block: 1.1rem; }
  .logo img { width: 190px; }
  .site-nav { order: 0; flex-basis: auto; }
  .site-nav ul { gap: 2rem; }
}

/* ---------- hero */
.hero { padding-top: clamp(2.5rem, 1.5rem + 5vw, 6rem); overflow: hidden; }
.hero__copy { display: grid; gap: 1.5rem; }
.hero__title {
  font-size: clamp(2.6rem, 1.2rem + 6.4vw, 6rem);
  line-height: .98; letter-spacing: -0.03em; max-width: 13ch;
}
.hero__text { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.5rem; }
@media (min-width: 64em) {
  .hero__copy { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; gap: 4rem; }
  .hero__aside { padding-bottom: .6rem; }
}

/* The holder: the mark's frame around the editor, open at the top right, where the block settles in. */
.holder { --pad: clamp(.9rem, .4rem + 2vw, 2.25rem); --edge: clamp(8px, .3rem + .7vw, 16px);
  position: relative; margin-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); padding: var(--pad); margin-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.holder__frame {
  position: absolute; inset: 0; border: var(--edge) solid var(--frame);
  border-radius: calc(var(--pad) + 18px);
  /* the opening: no frame along the top-right part, as in the mark (top edge stops at 46%, right edge starts at 54%) */
  clip-path: polygon(0 0, 46% 0, 46% 54%, 100% 54%, 100% 100%, 0 100%);
}
.holder__block {
  position: absolute; z-index: 2; top: calc(var(--pad) * -.35); right: calc(var(--pad) * -.35);
  width: clamp(44px, 2rem + 4vw, 104px); aspect-ratio: 1; border-radius: 22%;
  background: var(--block);
  animation: drop 520ms var(--settle) 450ms both;
}
@keyframes drop { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }
.holder__browser { position: relative; z-index: 1; }
.holder__phone { position: absolute; z-index: 3; width: 33%; max-width: 240px; left: calc(var(--pad) * -.4); bottom: calc(var(--pad) * -2.2); }
@media (min-width: 64em) { .holder__phone { left: calc(var(--pad) * -1.4); width: 19%; } }

/* ---------- devices */
.device { margin: 0; background: var(--device); box-shadow: var(--shadow); }
.device img { width: 100%; height: auto; }
.device--browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.device__bar { display: flex; align-items: center; gap: 6px; height: clamp(22px, 1rem + 1vw, 34px); padding-inline: 12px; background: var(--device-bar); border-bottom: 1px solid var(--line); }
.device__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.device__bar b { margin-left: 12px; height: 45%; flex: 0 1 34%; border-radius: 999px; background: var(--bg); }
.device--phone { position: relative; border-radius: clamp(18px, 1rem + 1.5vw, 38px); padding: clamp(4px, .2rem + .4vw, 9px); background: #1E1A1D; border: 1px solid #3A2F35; }
.device--phone .device__screen img { border-radius: clamp(14px, .8rem + 1.2vw, 30px); }

/* ---------- bands */
.band { padding-block: var(--band); }
.band--tinted { background: var(--bg-tint); }
.band--dark { background: var(--fig); color: #F6EEF2; --text: #FFFFFF; --muted: #D9C7D0; --accent: var(--blush); --line: #4A3141; --soft: #432536; }
@media (prefers-color-scheme: dark) { .band--dark { background: #2A1622; } }
.band--short { padding-block: 0 var(--band); }
.band--plain + .band--plain { padding-top: 0; }
.band__head { display: grid; gap: .9rem; max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.band__foot { margin-top: 2.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

/* ---------- points */
.points { display: grid; gap: 2rem 3rem; }
.point { display: grid; grid-template-columns: 48px 1fr; gap: .35rem 1.1rem; align-content: start; }
.point__icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--accent); }
.point__title { font-size: 1.25rem; padding-top: .55rem; }
.point__text { color: var(--muted); max-width: 32rem; }
@media (min-width: 48em) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 3.5rem; } }
@media (min-width: 64em) { .points--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- showcase */
.showcase { display: grid; gap: 2.5rem; align-items: center; }
.showcase__copy { display: grid; gap: 1.25rem; align-content: start; }
.showcase--phone .showcase__media { max-width: 300px; width: 72%; justify-self: center; }
@media (min-width: 64em) {
  .showcase { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; }
  .showcase--left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .showcase--left .showcase__media { order: -1; }
  .showcase--phone { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .showcase--phone .showcase__media { width: 100%; }
}
.prose { display: grid; gap: 1rem; max-width: 40rem; }
.prose p, .prose li { color: var(--muted); font-size: 1.1rem; }
.prose strong { color: var(--text); font-weight: 700; }
.prose h2 { margin-bottom: .25rem; }
.prose h3 { margin-top: 1rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25rem; display: grid; gap: .4rem; }
.prose li::marker { color: var(--accent); }
.band--text .prose p, .band--text .prose li { color: var(--text); }

.words { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.words li {
  display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .85rem .5rem .6rem;
  border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--bg) 6%, transparent);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.words__block { width: 14px; height: 14px; border-radius: 4px; background: var(--blush); }

/* ---------- steps: a sequence, so numbered; the last block is the filled one */
.steps { display: grid; gap: 2.25rem; counter-reset: none; }
.step { position: relative; display: grid; gap: .6rem; align-content: start; }
.step__number {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: .6rem; border-radius: 14px;
  border: 2px solid var(--accent); color: var(--accent); font: 650 1.4rem/1 var(--font-display);
}
.step--last .step__number { background: var(--accent); color: var(--on-accent); }
.step__title { font-size: 1.35rem; }
.step__text { color: var(--muted); }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }
@media (min-width: 64em) {
  .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
  .steps--4 .step:not(.step--last)::after {
    content: ""; position: absolute; top: 25px; left: 68px; right: -1.6rem; height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
  }
}

/* ---------- faq */
.faq { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__question {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0;
  cursor: pointer; list-style: none; font: 650 1.2rem/1.3 var(--font-display);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--soft);
  background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent));
  background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat;
}
.faq__item[open] .faq__question::after { background-size: 12px 2px, 0 0; }
.faq__answer { padding-bottom: 1.4rem; }

/* ---------- call to action */
.cta { background: var(--bramble); color: #FFFFFF; overflow: hidden; }
.cta__inner { position: relative; padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
.cta__copy { position: relative; display: grid; gap: 1.25rem; max-width: 40rem; }
.cta__title { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); line-height: 1.02; letter-spacing: -0.025em; }
.cta__text { font-size: 1.15rem; color: #FBE9F1; max-width: 34rem; margin-bottom: .75rem; }
.cta__mark { position: absolute; right: -12%; bottom: -30%; width: min(78vw, 30rem); opacity: .5; }
.cta__frame { fill: #7E1650; }
.cta__block { fill: var(--blush); }
@media (min-width: 64em) { .cta__mark { right: var(--gutter); top: 50%; bottom: auto; transform: translateY(-50%); width: 22rem; opacity: 1; } }
@media (prefers-color-scheme: dark) { .cta { background: #7A1A4E; } .cta__frame { fill: #9E2A68; } }

/* ---------- page head */
.page-head { position: relative; overflow: hidden; background: var(--bg-tint); padding-block: clamp(3rem, 2rem + 5vw, 6.5rem); }
.page-head__inner { position: relative; z-index: 1; display: grid; gap: 1.25rem; }
.page-head__title { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); line-height: 1; letter-spacing: -0.03em; max-width: 14ch; }
.page-head__intro { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); color: var(--muted); max-width: 38rem; }
.page-head__mark { position: absolute; right: -4rem; top: -3rem; width: clamp(9rem, 6rem + 14vw, 20rem); opacity: .18; }
.page-head__frame { fill: var(--frame); }
.page-head__block { fill: var(--block); animation: drop 520ms var(--settle) 300ms both; }
@media (min-width: 64em) { .page-head__mark { right: max(var(--gutter), calc((100vw - 76rem) / 2 + 2rem)); top: 50%; transform: translateY(-50%); opacity: 1; width: 9.5rem; } }

/* ---------- contact */
.contact__grid { display: grid; gap: 3rem; }
.contact__main { display: grid; gap: 1.25rem; align-content: start; }
.contact__form { margin-top: 1rem; }
/* The form frame cannot resize itself without a script (script-src 'none'), so its height is fixed:
   tall enough for the form with every error message showing, so there is never a second scrollbar. */
.contact__frame { display: block; width: 100%; height: 940px; border: 0; color-scheme: light dark; }
@media (min-width: 40em) { .contact__frame { height: 900px; } }
.contact__pending {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; margin-top: 1rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border: 2px dashed var(--line); border-radius: 20px;
}
.contact__pending p { color: var(--muted); }
.contact__pending-title { font: 650 1.3rem/1.25 var(--font-display); color: var(--text) !important; margin-bottom: .35rem; }
.contact__pending-mark { position: relative; width: 48px; height: 48px; border: 6px solid var(--frame); border-radius: 16px; clip-path: polygon(0 0, 46% 0, 46% 54%, 100% 54%, 100% 100%, 0 100%); }
.contact__pending-mark span { position: absolute; }
.contact__aside { align-self: start; display: grid; gap: 1rem; align-content: start; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: 20px; background: var(--bg-tint); }
.contact__aside h3 { font-size: 1.2rem; }
.contact__aside h3:not(:first-child) { margin-top: 1rem; }
.contact__aside p { color: var(--muted); }
.ticks { display: grid; gap: .6rem; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; }
.ticks .icon { width: 22px; height: 22px; color: var(--accent); margin-top: .1rem; }
@media (min-width: 64em) { .contact__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; } }

/* ---------- footer */
.site-footer { background: var(--fig); color: #E9D6E0; padding-top: 3.5rem; }
@media (prefers-color-scheme: dark) { .site-footer { background: #120B0F; } }
.site-footer a { color: #FFFFFF; }
.site-footer__inner { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer__brand { display: grid; gap: 1rem; max-width: 24rem; }
.site-footer__brand img { width: 170px; }
.site-footer__links ul { display: grid; gap: .5rem; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__legal { padding-bottom: 1.5rem; font-size: .95rem; color: #D2BCC8; }
.site-footer__legal p { border-top: 1px solid #4A3141; padding-top: 1.25rem; }
@media (min-width: 48em) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .site-footer__links ul { grid-auto-flow: column; grid-template-rows: repeat(2, auto); gap: .6rem 3rem; }
}

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