/* Template scaffolding — page layout and web-scale sizing only; every color,
   font, radius and shadow comes from ../../styles.css. The voice is the
   deck's, re-derived for a scrolling page: the grid SHOWS — 2px
   rules draw the structure — red is spent as a mark, and its one field
   moment is the poster close (the deck's divider logic: the red page sets
   nothing small).

   THE RHYTHM: a 28px leading unit (17px Archivo body at ~1.65), 14px
   half-step; line-heights and block margins in unit multiples, heads
   cap-trimmed, ?baselines/B to review. The deck's seat-pinning relaxes to
   per-block discipline on a fluid page. The system's own interface
   components (nav, buttons, inputs) keep their styles.css leading — the
   rhythm governs the page's text, not the controls.

   THE LANDING LAWS (shared by all six systems' landing templates):
   #1 display headers break per sentence (.line spans); #2 the landing
   advertises an invented product played straight — modernist's is Takt,
   timetables that run like Switzerland; #3 spacing is cluster-scoped
   (display leading ratio-governed ≈1.06 for Archivo's tight caps — the
   display-block lattice exemption — tight single-unit gaps inside a text
   cluster, the air between sections); #4 no hero eyebrow — the nav brand
   names the product.

   Optical left alignment: the deck's measured Archivo 800 value carries
   verbatim (-0.058em where caps lead a display line; em-scaled). */
:root {
  --leading: 28px;
  --half: 14px;
  --edge: clamp(20px, 5vw, 72px);
  --measure: 58ch;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--edge); }
/* the component demo pads the masthead with its own spacing; on the page the
   masthead's contents take the page gutter and sit on the wrap's text axis
   (padding-only — full-width paint such as a masthead rule is untouched) */
.nav { padding-inline: max(var(--edge), calc((100% - 1200px) / 2 + var(--edge))); }
.nav a { white-space: nowrap; }
.nav .seg { flex: none; }
.nav .seg-opt { font-family: var(--font-heading); letter-spacing: 0.04em; }
.nav a[aria-current='location'] { color: var(--color-accent); } /* in-page anchor, not
   a page link — 'location' is the truthful value; carry the component's active ink */
@media (max-width: 560px) { /* the control row + CTA cross narrow-phone widths: wrap the
   masthead onto two rows rather than squeeze it (layout only — the component's look holds) */
  .nav { flex-wrap: wrap; row-gap: var(--space-2); column-gap: var(--space-3); }
  .nav-brand { flex: 1 0 100%; margin-right: 0; }
  .nav-brand img { height: 26px; }
}
@media (max-width: 480px) { .nav a:not(.btn) { display: none; } } /* phone width: the nav
   keeps brand + the one action (layout-only — the component's look is
   untouched); the full link row's min-content crosses narrow-phone widths */

/* — drawn structure: the 2px rule is the section seam (the deck's header
   band as page grammar; rules span the content column, solid — this system
   does not fade its rules) — */
.rule2 { height: 2px; border: 0; margin: 0; background: var(--color-divider); }

/* — kicker (deck grammar: uppercase, tabular, accent; no hanging dash —
   modernist marks are squares, and they belong to lists, not labels) — */
.kicker {
  display: block; font-size: 13px; line-height: var(--half);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-700); /* accent-colored SMALL text takes the deep step —
     6.4:1, where the base accent measures 3.8:1 (a large-text value; the
     deck's kickers are 24px, this one is 13px) */
  font-feature-settings: "tnum" 1;
  margin: 0 0 calc(var(--leading) - var(--half));
}

/* — hero — */
.hero { padding: calc(4 * var(--leading)) 0 calc(3 * var(--leading)); }
.display {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(42px, 6.2vw, 84px);
  line-height: clamp(44.5px, 6.57vw, 89px); /* law #3: ratio-governed ≈1.06 —
     Archivo's 800 sits tight and all-cap-height; the display-block lattice
     exemption (no 14px step is both tighter than the old look and clear) */
  letter-spacing: -0.02em; margin: 0;
  margin-left: -0.058em; /* optical left alignment — the deck's measured Archivo 800 value */
  text-box: trim-both cap alphabetic;
}
.display .line { display: block; } /* law #1: one sentence per line */
.hero .sub { font-size: 17px; line-height: var(--leading); max-width: var(--measure);
  margin: calc(1.5 * var(--leading) - 1cap) 0 0;
  text-box: trim-both cap alphabetic; } /* 1.5 units: clears the display's descenders with cluster-tight air (law #3) */
.hero .row { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--leading); }

/* — stat row (in-grammar: red stays a MARK on the light ground — the stat
   numerals take the accent at display size, ≥3:1 as large text per the
   system's own accent rule; the red FIELD is reserved for the close) — */
.stats { padding: calc(2.5 * var(--leading)) 0; }
.stats .grid { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: calc(1.5 * var(--leading)) var(--leading); }
.stat-num { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(34px, 3.4vw, 48px); line-height: calc(2 * var(--leading));
  color: var(--color-accent); /* display figures stay proportional — the deck's figure policy */
  margin: 0; margin-left: -0.045em; /* digits lead — the deck's "0"-population value */
  text-box: trim-both cap alphabetic; }
.stat-label { font-size: 13px; line-height: var(--half); letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 70%, transparent); /* small-text ink on the
     light ground: 70% measures 5.8:1 (the deck's 55% furniture mix is a
     24px large-text convention — at 13px the 4.5:1 bar applies, and 55%
     measures only 3.7:1 here) */
  margin: var(--half) 0 0; }

/* — feature rows (the deck's ruled-toc grammar: 2px rules ON the seams,
   red square marks hanging at the numbers — drawn structure, no cards) — */
.features { padding: calc(3 * var(--leading)) 0 calc(2.5 * var(--leading)); }
.feature { display: grid; grid-template-columns: minmax(64px, 160px) minmax(0, 420px) minmax(0, 1fr);
  gap: var(--leading) clamp(24px, 4vw, 72px); align-items: baseline;
  padding: calc(1.5 * var(--leading)) 0; }
.feature + .feature { border-top: 2px solid var(--color-divider); } /* the ruled seam — solid, the system's weight */
.f-num { position: relative; font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 15px; line-height: var(--leading); color: var(--color-text);
  font-feature-settings: "tnum" 1; margin: 0; text-box: trim-both cap alphabetic; }
.f-num::before { content: ""; position: absolute; left: -24px; top: calc(0.5cap - 5px);
  width: 10px; height: 10px; background: var(--color-accent); } /* the deck's 10px red square,
     hanging left of the number's axis — at narrow widths the gutter folds it away */
@media (max-width: 1280px) { .f-num::before { display: none; } }
.f-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 24px; line-height: var(--leading); letter-spacing: -0.01em;
  margin: 0; text-box: trim-both cap alphabetic; }
.f-copy { font-size: 15.5px; line-height: var(--leading); margin: 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  max-width: 52ch; text-box: trim-both cap alphabetic; }

/* — imagery split (grayscale photograph — the system prints in black and
   white; the box pins the bundled asset's 951×665 ratio so swaps
   cover-crop into the same frame) — */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--leading) clamp(24px, 5vw, 96px); align-items: center;
  padding: calc(2 * var(--leading)) 0 calc(3 * var(--leading)); }
.split-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 32px; line-height: calc(1.5 * var(--leading)); letter-spacing: -0.015em;
  margin: 0; text-box: trim-both cap alphabetic; }
.split-copy .note { font-size: 15.5px; line-height: var(--leading);
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  margin: calc(var(--leading) - 1cap) 0 0; max-width: 48ch; text-box: trim-both cap alphabetic; }
.split-figure { margin: 0; }
.split-figure img { width: 100%; aspect-ratio: 951 / 665; object-fit: cover; }

/* — quote (hanging punctuation, the deck's measured Archivo advances) — */
.quote { padding: calc(2.5 * var(--leading)) 0 calc(3.5 * var(--leading)); }
.quote blockquote {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(24px, 2.6vw, 34px); line-height: calc(1.5 * var(--leading));
  letter-spacing: -0.015em; max-width: 32ch; margin: 0;
  text-indent: -0.496em; /* hang the opening “ (the deck's measured advance in the 800) */
  text-box: trim-both cap alphabetic;
}
.quote figcaption { font-size: 15.5px; line-height: var(--leading);
  color: color-mix(in srgb, var(--color-text) 70%, transparent); /* 5.8:1 — see .stat-label */
  margin: calc(2 * var(--leading) - 1cap) 0 0; /* two grid units below the quote's
     last baseline — one reads as part of the quote block; the attribution needs air */
  text-indent: -1.209em; /* hang the leading em-dash + space (measured in the Regular) */
  text-box: trim-both cap alphabetic; }

@media (max-width: 720px) {
  /* the phone gutter (--edge bottoms out at 20px) is narrower than the hung
     marks' measured advances, so a hung “ or em-dash would press into or past
     the viewport edge — seat the quote flush below this width; the hang
     returns with the wider gutter */
  .quote blockquote, .quote figcaption { text-indent: 0; }
}

/* — the red poster close (the deck's divider logic: the accent's one field
   moment, type reversed to the paper token). COPY on the red is
   display-grade only — paper display type measures 3.8:1, the deck
   dividers' own derivation. The one small element is the ghost button, a
   CONTROL: paper-on-red measures the same 3.8:1, which meets the system's
   documented interface-chrome bar (the readme tunes the accent pair to at
   least 3:1 — "enough for icons, large text and interface chrome, not for
   body copy") — the same bar the system's own accent-filled primary button
   label rides everywhere. */
.close { background: var(--color-accent); color: var(--color-bg); }
.close .wrap { padding-top: calc(3 * var(--leading)); padding-bottom: calc(3 * var(--leading)); }
.close h3 { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(34px, 4.2vw, 56px); line-height: clamp(36px, 4.45vw, 59.4px); /* ≈1.06 —
     display-grade, so it carries the display-block lattice exemption (the
     rhythm probe excludes .display and .close h3 alike) */
  letter-spacing: -0.015em; margin: 0; margin-left: -0.058em;
  text-box: trim-both cap alphabetic; }
.close h3 .line { display: block; }
.close .row { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: calc(1.5 * var(--leading)); }
.close .btn-ghost { color: var(--color-bg); border-color: var(--color-bg); } /* paper outline on the red field */
footer { padding: calc(2 * var(--leading)) 0; font-size: 13px; line-height: var(--leading);
  color: color-mix(in srgb, var(--color-text) 70%, transparent); /* 5.8:1 — see .stat-label */ }

/* — responsive collapse — */
/* the feature grid's fixed-max columns (160 + 420 + gaps) crush the copy
   column in the tablet band, so it collapses earlier than the page */
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; gap: var(--half); }
  .f-copy { max-width: var(--measure); }
}
@media (max-width: 720px) {
  .hero { padding-top: calc(2.5 * var(--leading)); }
  .stats .grid { grid-template-columns: repeat(2, 1fr); justify-content: start; }
  .split { grid-template-columns: 1fr; }
  .split-figure { order: -1; }
}

/* — pricing row (drawn structure, not cards: five equal cells split by the
   2px rule; red stays a mark — the figures and the list squares) — */
.pricing { padding: calc(2.5 * var(--leading)) 0 calc(3 * var(--leading)); }
.pricing .head { display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--leading); flex-wrap: wrap; margin-bottom: calc(1.5 * var(--leading)); }
.pricing .head h2 { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 32px; line-height: calc(1.5 * var(--leading)); letter-spacing: -0.015em;
  margin: 0; text-box: trim-both cap alphabetic; }
.terms { font-size: 13px; line-height: var(--leading); margin: 0;
  color: color-mix(in srgb, var(--color-text) 70%, transparent); max-width: 40ch; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--color-divider); }
.price-col { display: flex; flex-direction: column;
  padding: calc(1.25 * var(--leading)) clamp(14px, 1.5vw, 22px) calc(1.5 * var(--leading)) 0; }
.price-col + .price-col { border-left: 2px solid var(--color-divider); padding-left: clamp(14px, 1.5vw, 22px); }
.p-name { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.p-amount { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(26px, 2.4vw, 34px); line-height: calc(1.5 * var(--leading));
  color: var(--color-accent); margin: var(--half) 0 0; margin-left: -0.045em;
  font-feature-settings: "tnum" 1; text-box: trim-both cap alphabetic; }
.p-unit { font-size: 12px; line-height: var(--half); letter-spacing: 0.06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 70%, transparent); margin: var(--half) 0 0; }
.p-list { list-style: none; margin: var(--leading) 0 var(--leading); padding: 0; flex: 1; }
.p-list li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: var(--leading);
  color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.p-list li::before { content: ""; position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px; background: var(--color-accent); }
.price-col .tag { margin-top: var(--half); align-self: flex-start; }
.price-col .btn { align-self: flex-start; } /* the system's labels sit flush left — the button hugs its label */
@media (max-width: 880px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-col + .price-col { border-left: 0; padding-left: 0; border-top: 2px solid var(--color-divider); }
}
.p-who { font-size: 13px; line-height: var(--half); margin: var(--half) 0 0;
  color: color-mix(in srgb, var(--color-text) 70%, transparent); }
/* the add-on line: scaling is a row on the same lattice, not a fourth plan */
.addon { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
  gap: var(--half) clamp(24px, 4vw, 72px); padding: calc(1.25 * var(--leading)) 0;
  border-top: 2px solid var(--color-divider); }
.addon h3 { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 19px; line-height: var(--leading); margin: 0; text-box: trim-both cap alphabetic; }
.addon p { font-size: 15.5px; line-height: var(--leading); margin: 0; max-width: 54ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.addon .p-amount { line-height: var(--leading); margin: 0; }
@media (max-width: 560px) { .addon { grid-template-columns: 1fr; } }

/* — comparison table (the system's .table; figures tabular, first column
   reads as copy rather than a header shout) — */
.compare { padding: calc(2.5 * var(--leading)) 0 calc(3 * var(--leading)); }
.table-scroll { overflow-x: auto; }
.compare .table { min-width: 680px; font-feature-settings: "tnum" 1; }
.compare .table th, .compare .table td { padding: var(--half) var(--space-2); }
.compare .table th:first-child, .compare .table td:first-child { padding-left: 0; }
.compare .table tbody th { font-family: var(--font-body); font-size: 14.5px;
  letter-spacing: 0; text-transform: none; color: var(--color-text); font-weight: 400;
  border-bottom: 1px solid var(--color-divider); }
.compare .table thead th { font-size: 12px; color: var(--color-text); }
.mark { display: inline-block; width: 10px; height: 10px; background: var(--color-accent); }
.none { color: color-mix(in srgb, var(--color-text) 45%, transparent); }

/* — SSS (feature-row grammar reused: 2px seams, question left, answer right) — */
.faq { padding: calc(2.5 * var(--leading)) 0 calc(3 * var(--leading)); }
.qa { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: var(--half) clamp(24px, 4vw, 72px); padding: calc(1.25 * var(--leading)) 0;
  border-top: 2px solid var(--color-divider); }
.qa h3 { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 19px; line-height: var(--leading); letter-spacing: -0.01em; margin: 0;
  text-box: trim-both cap alphabetic; }
.qa p { font-size: 15.5px; line-height: var(--leading); margin: 0; max-width: 54ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent); text-box: trim-both cap alphabetic; }

/* — contact — */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: calc(1.5 * var(--leading)) clamp(24px, 5vw, 96px);
  padding: calc(2.5 * var(--leading)) 0 calc(3 * var(--leading));
  border-top: 2px solid var(--color-divider); }
.contact h2 { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 32px; line-height: calc(1.5 * var(--leading)); letter-spacing: -0.015em;
  margin: 0; text-box: trim-both cap alphabetic; }
.contact .note { font-size: 15.5px; line-height: var(--leading); max-width: 48ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  margin: calc(var(--leading) - 1cap) 0 0; text-box: trim-both cap alphabetic; }
/* the reach block replaces the form: the phone takes the stat row's display
   treatment (accent figures at display size, ≥3:1 as large text — the
   system's own accent rule), the address below it the deep step */
/* each number is its own line: a column with a half-leading gap (the trimmed
   cap-height boxes otherwise touch edge to edge) */
.reach { display: flex; flex-direction: column; align-items: flex-start; gap: var(--half);
  margin: var(--leading) 0 0; }
.reach-tel { display: block; font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  /* the stat row's display treatment; the number measures ~7.65x its font-size,
     so the 30px floor still clears the narrowest phone gutter (320px - 2x20px) */
  font-size: clamp(30px, 3.2vw, 44px); line-height: 1.2;
  white-space: nowrap; /* a phone number never breaks across lines */
  color: var(--color-accent); text-decoration: none;
  margin-left: -0.045em; /* digits lead — the deck's "0"-population value, as .stat-num */
  font-feature-settings: "tnum" 1; text-box: trim-both cap alphabetic; }
.reach-tel:hover { color: var(--color-accent-700); }
.reach-mail { display: inline-block; font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 19px; line-height: var(--leading); color: var(--color-accent-700); /* 6.4:1 — the
     deep step, as .details a; the base accent is a large-text value */
  text-decoration: none; margin-top: 0; /* the .reach gap spaces it */ text-box: trim-both cap alphabetic; }
.reach-mail:hover { color: var(--color-accent-800); text-decoration: underline; }
/* what the form used to ask for, said out loud — the list grammar is the
   pricing column's: red squares, they belong to lists */
.ready-label { font-size: 12px; line-height: var(--half); letter-spacing: 0.06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 70%, transparent); margin: var(--leading) 0 0; }
.contact .p-list { margin: var(--half) 0 0; flex: none; }
.details { margin: var(--leading) 0 0; }
.details > div { padding: var(--half) 0; border-top: 1px solid var(--color-divider); }
.details dt { font-size: 12px; line-height: var(--half); letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.details dd { margin: 6px 0 0; font-size: 15.5px; line-height: var(--leading); }
.details a { color: var(--color-accent-700); text-decoration: none; }
.details a:hover { color: var(--color-accent-800); text-decoration: underline; }
@media (max-width: 880px) {
  .qa { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

/* ops#153 — one gap rule for every heading and display line, site-wide. text-box
   trims each box to cap-top/baseline, so at margin 0 a heading's descenders (y, g, p)
   reached the next block's cap line: /giris/ h2 over its paragraph, and the phone
   numbers before f700d6f. 0.4em clears them at every size. Placed last and with
   `body :is(...)` so it wins the equal-specificity `margin: 0` rules above
   (.display, .split-title, .f-title, .stat-num, .qa h3, .contact h2 ...). */
body :is(h1, h2, h3, .display, .split-title, .f-title, .stat-num, .reach-tel, .p-amount,
  .close h3, .qa h3, .addon h3, .contact h2, .pricing .head h2) {
  margin-block-end: 0.4em;
}

/* — sign-in routes (/giris/, ops#153): two large cards on the site's .card surface
   (_ds styles.css), the whole card is the link; stacked below 640px. Text is the
   page ink on the surface (AA by a wide margin); the accent is a 4px rule and the icon,
   and the focus ring is accent-700 (6:1 on paper). */
.gate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--half);
  margin-top: var(--leading); }
.gate-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--half);
  min-height: calc(6 * var(--leading)); padding: calc(1.5 * var(--leading));
  text-decoration: none; color: var(--color-text);
  border-top: 4px solid var(--color-divider); transition: background-color 0.15s; }
.gate-card--primary { border-top-color: var(--color-accent); }
.gate-card:hover { background: color-mix(in srgb, var(--color-text) 7%, var(--color-surface)); }
.gate-card:active { background: color-mix(in srgb, var(--color-text) 14%, var(--color-surface)); }
.gate-card:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 3px; }
.gate-icon { width: 40px; height: 40px; color: var(--color-accent-700); flex: none; margin-bottom: var(--space-2); }
.gate-card .card-title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; color: var(--color-text); }
.gate-line { font-size: 15.5px; line-height: var(--leading); color: color-mix(in srgb, var(--color-text) 82%, var(--color-surface)); }
.gate + .terms { margin-top: var(--leading); }
@media (max-width: 640px) { .gate { grid-template-columns: minmax(0, 1fr); } }

/* Review aid: the 28px rhythm drawn as hairlines — debug chrome, toggled by
   ?baselines or the B key, never part of the look. */
body[data-baselines] { position: relative; }
body[data-baselines]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom,
      color-mix(in srgb, var(--color-accent) 35%, transparent) 0 1px,
      transparent 1px var(--leading)),
    repeating-linear-gradient(to bottom,
      transparent 0 var(--half),
      color-mix(in srgb, var(--color-accent) 16%, transparent) var(--half) calc(var(--half) + 1px),
      transparent calc(var(--half) + 1px) var(--leading));
}
