/* Layout and components. Tokens (palette, type scale, grain, motion guard) live in tokens.css.
   Mobile-first: the narrow rules are the defaults, because that is where the customers are. */

/* ─────────────────────────── motion ─────────────────────────── */
/* Entrance only, on load. No scroll-triggered reveal: content must never depend on movement to
   become visible (FR-012), and tokens.css disables all of this under prefers-reduced-motion. */

@keyframes rise   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes slideL { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero__body > *  { animation: rise .8s cubic-bezier(.16,.84,.28,1) both; }
.hero__body > :nth-child(2) { animation-delay: .08s; }
.hero__body > :nth-child(3) { animation-delay: .16s; }
.hero__body > :nth-child(4) { animation-delay: .24s; }
.hero__body > :nth-child(5) { animation-delay: .32s; }
.hero__body > :nth-child(6) { animation-delay: .40s; }
.hero__body > :nth-child(7) { animation-delay: .48s; }
.hero__panel { animation: slideL 1.1s cubic-bezier(.16,.84,.28,1) both; }

/* ─────────────────────────── nav ─────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.75rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.nav__mark  { width: 22px; height: auto; display: block; }
.nav__word  { font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.nav__links { display: none; align-items: center; gap: 1.75rem; }
.nav__link  { color: var(--muted); font-size: var(--step--1); }
.nav__link:hover { color: var(--accent); }
.nav__lang  { display: inline-flex; gap: 0.4rem; align-items: center;
              padding-left: 1.25rem; border-left: 1px solid var(--line);
              font-size: var(--step--1); color: var(--muted); }
.nav__lang [aria-current] { color: var(--ink); font-weight: 500; }
.nav > .btn { display: none; }

/* ─────────────────────────── buttons ─────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem; min-height: 44px; padding: 0.7rem 1.35rem;
  border-radius: var(--radius); font-weight: 500; font-size: var(--step-0);
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .25s cubic-bezier(.16,.84,.28,1), filter .25s;
}
.btn:hover  { transform: translateY(-2px); filter: brightness(1.06); }
.btn--primary { background: var(--accent);  color: var(--paper); }
.btn--dark    { background: var(--brand); color: var(--paper); }
.btn--ghost   { border-color: var(--line-2); color: var(--ink); }

/* ─────────────────────────── hero ─────────────────────────── */

.hero { display: grid; grid-template-columns: 1fr; }
.hero__panel {
  background: var(--stone);
  overflow: hidden;
  display: flex; align-items: center;
  height: 170px;
}
/* The mark is deliberately oversized and cropped by the panel — the signature device. */
.hero__mark { height: 260px; width: auto; max-width: none; margin-left: -9%; display: block; }
.hero__body { padding: 2.5rem var(--gutter) 3rem; }

.eyebrow {
  font-size: var(--step--1); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 1.25rem;
}
.hero__headline { font-size: var(--step-4); line-height: 1.02; margin-bottom: 1.25rem; }
.accent { color: var(--accent); font-style: italic; }
.hero__lede { font-size: var(--step-1); color: var(--muted); margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.hero__micro { font-size: var(--step--1); color: var(--muted-2); margin-bottom: 2rem; }

.trust { display: grid; gap: 0; border-top: 1px solid var(--line-2); margin-bottom: 1.5rem; }
.trust__item { display: flex; align-items: baseline; gap: 1rem;
               padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.trust__value { font-size: var(--step-1); flex: 0 0 8.5rem; }
.trust__note  { font-size: var(--step--1); color: var(--muted-2); }
.hero__alt { display: inline-flex; align-items: center; gap: 0.5rem;
             color: var(--brand); font-weight: 500; font-size: var(--step-0);
             text-decoration: underline; text-underline-offset: 4px;
             text-decoration-color: var(--line-2); }
.hero__alt:hover { text-decoration-color: var(--brand); }

/* ─────────────────────────── marquee ─────────────────────────── */

.marquee { background: var(--brand); overflow: hidden; padding: 0.85rem 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee__item {
  padding: 0 1.1rem; white-space: nowrap;
  font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 82%, transparent);
}
.marquee__item::after { content: "·"; margin-left: 1.1rem; color: var(--accent-soft); }

/* ─────────────────────────── sections ─────────────────────────── */

.section { padding: 3.5rem var(--gutter); }
.section--stone { background: var(--paper-2); }
.section--dark  { background: var(--brand); color: var(--paper); }
.section--dark .section__deck,
.section--dark .item__body { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.section--dark .section__label { color: color-mix(in srgb, var(--paper) 50%, transparent); }
.section--dark .section__number { color: var(--accent-soft); }
.section--dark .section__line { background: color-mix(in srgb, var(--paper) 22%, transparent); }

.section__rule { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.section__number { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.16em; color: var(--accent); }
.section__line { flex: 1; height: 1px; background: var(--line); }
.section__label { font-size: var(--step--1); font-weight: 500;
                  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); }
.section__title { font-size: var(--step-3); line-height: 1.06; margin-bottom: 1rem; }
.section__deck  { font-size: var(--step-0); color: var(--muted); margin-bottom: 2rem; }
.section__closing {
  font-size: var(--step-1); line-height: 1.4; max-width: 55ch;
  margin-top: 2.25rem; padding-top: 1.75rem; border-top: 2px solid var(--line-2);
}
.section--dark .section__closing { border-top-color: color-mix(in srgb, var(--paper) 22%, transparent); }

.items { display: grid; gap: 1.75rem; }
.item { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.item__marker {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; margin-bottom: 0.9rem;
  background: var(--accent); color: var(--paper);
  font-family: var(--serif); font-size: var(--step-0);
}
.item__heading { font-size: var(--step-1); font-weight: 500; margin-bottom: 0.5rem; }
.item__body { color: var(--muted); }

/* Software capabilities — numbered lines, not headed paragraphs */
.capabilities { display: grid; }
.capability { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 0;
              border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.capability:last-child { border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.capability__n { font-size: var(--step--1); letter-spacing: 0.14em;
                 color: color-mix(in srgb, var(--paper) 45%, transparent); }
.capability__t { font-size: var(--step-0); }

/* ─────────────────────────── pricing ─────────────────────────── */

.tiers { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.tier {
  border: 1px solid var(--line); border-radius: 6px; padding: 1.75rem 1.5rem;
  background: transparent;
  transition: transform .35s cubic-bezier(.16,.84,.28,1), box-shadow .35s;
}
.tier:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgb(30 58 49 / 0.10); }
.tier--featured { border-color: var(--accent); background: var(--paper); }
.tier__head { display: flex; align-items: center; justify-content: space-between;
              gap: 0.75rem; margin-bottom: 1.1rem; }
.tier__name { font-size: var(--step--1); font-weight: 500;
              letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); }
.tier--featured .tier__name { color: var(--accent); }
.tier__badge { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em;
               text-transform: uppercase; color: var(--paper); background: var(--accent);
               padding: 0.3rem 0.6rem; border-radius: 3px; white-space: nowrap; }
.tier__price { display: flex; align-items: baseline; gap: 0.45rem; margin-bottom: 0.5rem; }
.tier__price .serif { font-size: var(--step-3); line-height: 1; }
.tier__prefix { font-size: var(--step-0); color: var(--muted-2); }
.tier__basis  { font-size: var(--step--1); color: var(--muted-2); }
.tier__blurb  { color: var(--muted); font-size: var(--step--1);
                padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.tier__includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.tier__include { position: relative; padding-left: 1.5rem; font-size: var(--step--1); }
.tier__include::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 0.6rem; height: 0.32rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.founding { background: var(--accent); color: var(--paper); border-radius: 6px;
            padding: 1.25rem 1.5rem; margin-bottom: 1.1rem; }
.founding__label { display: inline-block; font-size: 0.7rem; font-weight: 500;
                   letter-spacing: 0.18em; text-transform: uppercase;
                   background: rgb(255 255 255 / 0.2); padding: 0.35rem 0.7rem;
                   border-radius: 3px; margin-bottom: 0.75rem; }
.founding__body { max-width: none; }

.care { border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem 1.5rem; }
.care__title { font-size: var(--step-1); margin-bottom: 0.4rem; }
.care__note  { color: var(--muted); font-size: var(--step--1); margin-bottom: 0.6rem; }
.care__tag   { font-size: var(--step--1); font-weight: 500;
               letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }

/* ─────────────────────────── faq ─────────────────────────── */

.faq { display: grid; }
.faq__row { padding: 1.4rem 0; border-top: 1px solid var(--line);
            transition: background .3s, padding-left .3s; }
.faq__row:last-child { border-bottom: 1px solid var(--line); }
.faq__row:hover { background: rgb(30 58 49 / 0.03); padding-left: 0.75rem; }
.faq__q { font-size: var(--step-0); font-weight: 500; margin-bottom: 0.5rem; }
.faq__a { color: var(--muted); }

/* ─────────────────────────── contact ─────────────────────────── */

.contact { display: grid; gap: 2rem; }
.contact__routes { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.contact__email { font-size: var(--step-0); text-decoration: underline;
                  text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.contact__email:hover { text-decoration-color: var(--accent); }

.form { display: grid; gap: 1rem; background: var(--paper); border: 1px solid var(--line);
        border-radius: 6px; padding: 1.5rem; }
.field { display: grid; gap: 0.45rem; margin: 0; }
.field__label { font-size: 0.7rem; font-weight: 500;
                letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.field input, .field textarea {
  font: inherit; color: var(--ink);
  padding: 0.75rem 0.9rem; min-height: 44px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); opacity: 0.75; }
.form__note { font-size: var(--step--1); color: var(--muted-2); }

/* ─────────────────────────── footer ─────────────────────────── */

.footer { background: var(--brand-deep); color: var(--paper);
          padding: 3rem var(--gutter) 2rem; display: grid; gap: 2rem; }
.footer__tagline { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.footer__motto { font-size: var(--step--1); font-weight: 500;
                 letter-spacing: 0.3em; text-transform: uppercase;
                 color: color-mix(in srgb, var(--paper) 42%, transparent); margin-top: 1rem; }
.footer__cols { display: grid; gap: 2rem; }
.footer__col { display: grid; gap: 0.7rem; align-content: start; }
.footer__heading { font-size: 0.7rem; font-weight: 500;
                   letter-spacing: 0.22em; text-transform: uppercase;
                   color: color-mix(in srgb, var(--paper) 40%, transparent); }
.footer__col a, .footer__contact a { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.footer__col a:hover, .footer__contact a:hover { color: var(--paper); }
.footer__contact { display: grid; gap: 0.6rem; }
.footer__legal { font-size: var(--step--1);
                 color: color-mix(in srgb, var(--paper) 38%, transparent);
                 border-top: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
                 padding-top: 1.25rem; }

/* ─────────────────────────── wider viewports ─────────────────────────── */

@media (min-width: 48rem) {
  .nav__links { display: flex; }
  .nav > .btn { display: inline-flex; }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq__row { display: grid; grid-template-columns: 26rem 1fr; gap: 3rem; }
  .faq__q { margin-bottom: 0; }
  .contact { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
}

@media (min-width: 64rem) {
  .section { padding: 5.5rem var(--gutter); }
  .hero { grid-template-columns: 24rem 1fr; }
  .hero__panel { height: auto; min-height: 100%; }
  .hero__mark { height: auto; width: 42rem; margin-left: -38%; }
  .hero__body { padding: 5rem 3rem 5rem 4rem; }
  .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust__item { flex-direction: column; gap: 0.3rem; border-bottom: 0; padding-right: 1.5rem; }
  .trust__value { flex: none; }
  .items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Four steps in a three-column grid orphans the last one. */
  #process .items { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .section__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: end; }
  .section__deck { margin-bottom: 0; }
  .footer { grid-template-columns: 1fr 1.4fr; }
  .footer__legal { grid-column: 1 / -1; }
}
