/* rinteo.com — brand (docs/BRAND.md): Ink #14161A text, Ground #F6F5F2
   surfaces, Sora display, DM Sans text. Signal Orange appears only inside the
   logo file (once per viewport at most) — never in this stylesheet.
   Product visuals (.ui …) are HTML/CSS recreations of real Rinteo screens. */

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #14161A;
  --ink-hover: #37383A;
  --ground: #F6F5F2;
  --white: #FFFFFF;
  --muted: #4B4D4E;       /* 7.9:1 on white, 7.3:1 on ground */
  --line: #DCDAD4;
  --control: #77797B;     /* input borders: 4.4:1 on white (≥ 3:1 for UI) */
  --canvas: #EFEFEC;      /* the editor's canvas behind the email */
  --display: "Sora", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --text: "DM Sans", -apple-system, "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  --gutter: max(16px, calc((100% - 1120px) / 2));
  --small: 16px;          /* smallest body text: 16 px desktop, 15 px mobile */
  --signal: #FF5A1F;      /* Signal Orange: the step chart line only (one per viewport) */
}
@media (max-width: 760px) { :root { --small: 15px; } body { font-size: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--ink); color: var(--white); border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* Full-width sections; content held to 1120px by the side padding. */
.top, main > *, .bottom { padding-left: var(--gutter); padding-right: var(--gutter); }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.top nav { display: flex; align-items: center; gap: 24px; font-weight: 500; }
.top nav a:not(.button) { text-decoration: none; }
.top nav a:not(.button):hover, .top nav a[aria-current="page"] { text-decoration: underline; }
.logo { display: inline-flex; }
.logo img { display: block; height: 24px; width: auto; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: clamp(38px, 6.4vw, 64px); letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.025em; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
p, ul, ol { margin: 0 0 16px; }

.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 640px; }
.kicker { font-size: var(--small); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.fine { font-size: var(--small); color: var(--muted); }
.h-small { font-size: 20px; letter-spacing: -0.01em; }

.button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.button:hover { background: var(--ink-hover); }
.button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.button-small { padding: 9px 16px; font-size: var(--small); }
.cta-row { margin: 28px 0 12px; }

main > section { padding-top: 88px; padding-bottom: 88px; }
/* Strictly alternating section backgrounds: white, Ground, white, … */
main > section:nth-of-type(even) { background: var(--ground); }
.next-title { margin-top: 40px; font-size: 16px; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 72px; }
main > section.hero { padding-top: 56px; padding-bottom: 72px; }
.hero-copy { max-width: 760px; }
.shot { margin: 0; }
.shot figcaption { margin-top: 14px; font-size: var(--small); color: var(--muted); }
.shot-hero { margin-top: 56px; }

/* Two columns from 920px */
.split { display: grid; gap: 48px; align-items: center; }
.split-wide { margin-top: 32px; align-items: start; }
@media (min-width: 920px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split-wide { grid-template-columns: 7fr 5fr; }
}
.narrow { max-width: 760px; }

.facts, .features, .flows, .steps, .tags, .plans { list-style: none; padding: 0; margin: 0; }
.facts { margin-top: 32px; display: grid; gap: 20px; }
.facts p, .features p, .flows p, .steps p { color: var(--muted); margin: 0; }
.features { display: grid; gap: 28px; }
/* Feature lists with a 20 px Ink line icon per item */
.features li, .flows li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; }
.icon { display: block; width: 20px; height: 20px; color: var(--ink); margin-top: 2px; flex: none; }

/* How it starts */
.start { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 760px) { .start { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.start li { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: var(--white); border-radius: 16px; }
.start p { margin: 0; font-weight: 500; }
.start-n { flex: none; width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 600 14px/1 var(--display); }

/* Neutral admin frame around the editor mock: it runs inside the store admin */
.admin { background: #E9E8E4; border-radius: 20px; padding: 0 10px 10px; }
.admin-bar { display: flex; gap: 8px; align-items: center; margin: 0; padding: 10px 6px; font: 500 13px/1.4 var(--text); color: var(--muted); }
.admin-sep { color: #8A8C8E; }
.admin .ui { box-shadow: none; }

/* Price step chart (positions in the generated rules at the end of the built site.css) */
.stepchart { margin: 32px 0 8px; }
.stepchart figcaption { margin-top: 10px; font-size: var(--small); color: var(--muted); max-width: 640px; }
.sc-plot { position: relative; height: 300px; }
.sc-area { position: absolute; left: 48px; right: 16px; top: 16px; bottom: 30px; }
.sc-area svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sc-band { fill: transparent; }
.sc-band.is-match { fill: rgba(20, 22, 26, 0.07); }
.sc-grid { stroke: var(--line); stroke-width: 1; }
.sc-axis { stroke: #8A8C8E; stroke-width: 1; }
.sc-line { fill: none; stroke: var(--signal); stroke-width: 3; stroke-linejoin: round; }
.sc-x, .sc-y, .sc-price { position: absolute; font: 500 13px/1 var(--text); color: var(--muted); white-space: nowrap; }
.sc-x { bottom: -22px; transform: translateX(-50%); }
.sc-y { left: -10px; transform: translate(-100%, 50%); }
.sc-price { transform: translate(-50%, -12px); color: var(--ink); font-weight: 600; }
@media (max-width: 479px) {
  .sc-plot { height: 240px; }
  .sc-area { left: 40px; right: 10px; }
  .sc-wide { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .sc-line { animation: sc-reveal 0.9s ease-out both; }
  @keyframes sc-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}
.flows { display: grid; gap: 20px; margin-top: 32px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: var(--small); }

/* Plans */
.plans { display: grid; gap: 12px; margin: 32px 0 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.plan { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.plan p { margin: 0; }
.plan .price { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 10px; }
.plan .price span { font-family: var(--text); font-size: var(--small); font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .limit { font-weight: 500; }
.plan .trial { font-size: var(--small); color: var(--muted); }
.plan.is-match { outline: 2px solid var(--ink); outline-offset: -1px; }
@media (min-width: 920px) { #plans { grid-template-columns: repeat(3, 1fr); } }
.rule { max-width: 640px; }
.billing-line { font-weight: 500; }

.finder { max-width: 640px; margin-bottom: 8px; }
.finder label { display: block; font-weight: 500; margin-bottom: 8px; }
.finder-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.finder input {
  width: 200px; max-width: 100%;
  padding: 11px 14px;
  font: inherit;
  border: 1px solid var(--control);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
.finder-result { margin: 0; font-weight: 500; }

.steps { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }

/* FAQ: <details> open without JS; site.js collapses them. */
.faq details { border-top: 1px solid var(--line); max-width: 820px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-weight: 600;
  font-size: 18px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-right: 40px; margin: 0 0 20px; }
.faq h2 { margin-bottom: 24px; }

.closing { text-align: left; }
main > section.closing { padding-top: 96px; padding-bottom: 104px; }

/* ── Product visuals: recreations of real Rinteo screens ─────────────────── */
.ui {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.06), 0 12px 32px rgba(20, 22, 26, 0.08);
  font: 13px/1.4 var(--text);
  color: var(--ink);
  overflow: hidden;
}
.ui p { margin: 0; }
.ui ul { list-style: none; margin: 0; padding: 0; }
.pill { padding: 2px 10px; border-radius: 999px; background: var(--ground); font-size: 12px; color: var(--muted); }
.btn-ui { padding: 6px 12px; border: 1px solid #D2D5D8; border-radius: 8px; background: var(--white); font-weight: 500; white-space: nowrap; }

/* Campaign editor */
.ed-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #F9FAFB; border-bottom: 1px solid var(--line); }
.ed-exit { width: 18px; height: 16px; border: 1.5px solid var(--ink); border-left-width: 0; border-radius: 0 3px 3px 0; flex: none; }
.ed-title { font-weight: 600; font-size: 14px; white-space: nowrap; }
.ed-device { margin: 0 auto; display: flex; background: #EAEDEF; border-radius: 8px; padding: 3px; }
.ed-device span { padding: 3px 12px; border-radius: 6px; color: var(--muted); }
.ed-device .on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 22, 26, 0.12); }
.ed-actions { display: flex; gap: 8px; }
.ed-body { display: grid; grid-template-columns: 248px 1fr; min-height: 400px; }
.ed-panel { padding: 16px; border-right: 1px solid var(--line); }
.ed-panel-title { font-weight: 600; font-size: 15px; margin-bottom: 14px !important; }
.ed-section { font-weight: 600; font-size: 12px; color: var(--muted); margin: 4px 0 8px !important; }
.ed-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px !important; }
.ed-tiles li {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px 8px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(55, 63, 71, 0.05), 0 1px 4px rgba(55, 63, 71, 0.16);
  font-size: 11.5px;
}
.ed-tiles li::before { content: ""; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 4px; opacity: 0.7; }
.ed-tiles li.on { box-shadow: 0 0 0 2px var(--ink); }
.ed-canvas { background: var(--canvas); padding: 32px; display: flex; justify-content: center; align-items: flex-start; }
.email { width: 100%; max-width: 480px; background: var(--white); padding: 24px; font-family: Arial, Helvetica, sans-serif; }
.em-store { text-align: center; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; padding-bottom: 14px !important; border-bottom: 1px solid #E5E5E5; margin-bottom: 20px !important; }
.em-h { font-size: 22px; font-weight: 700; line-height: 1.25; margin-bottom: 8px !important; }
.em-p { font-size: 14px; line-height: 1.5; color: #333333; margin-bottom: 32px !important; }
.em-products { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 10px; }
.em-products.is-selected { outline: 2px solid var(--ink); }
.sel-tag { position: absolute; left: -2px; top: -22px; padding: 2px 8px; background: var(--ink); color: var(--white); font: 600 11px/1.6 var(--text); border-radius: 4px 4px 0 0; }
.em-card { display: flex; flex-direction: column; gap: 4px; text-align: center; font-size: 12.5px; }
.em-card b { font-weight: 700; margin-top: 6px; }
.em-card i { font-style: normal; margin-top: 6px; padding: 7px 4px; background: #111111; color: var(--white); border-radius: 4px; font-size: 12px; }

/* Product photo placeholders: flat shapes, no stock imagery */
.ph { display: block; position: relative; aspect-ratio: 1; background: #EEEAE3; border-radius: 4px; overflow: hidden; flex: none; }
.ph.sm { width: 44px; }
.ph::before, .ph::after { content: ""; position: absolute; }
.ph-mug::before { left: 28%; top: 30%; width: 36%; height: 42%; background: #9FAE98; border-radius: 3px 3px 9px 9px; }
.ph-mug::after { left: 62%; top: 38%; width: 16%; height: 22%; border: 3px solid #9FAE98; border-left: 0; border-radius: 0 10px 10px 0; }
.ph-bowl::before { left: 20%; top: 46%; width: 60%; height: 26%; background: #C4B39A; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.ph-bowl::after { left: 18%; top: 42%; width: 64%; height: 6%; background: #B09E84; border-radius: 3px; }
.ph-vase::before { left: 37%; top: 34%; width: 26%; height: 42%; background: #B7ABA0; border-radius: 45% 45% 30% 30% / 35% 35% 25% 25%; }
.ph-vase::after { left: 45%; top: 22%; width: 10%; height: 16%; background: #B7ABA0; border-radius: 2px; }

/* Product block panel */
.panel { max-width: 380px; margin: 0 auto; padding: 0 0 20px; }
.pn-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px !important; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.pn-back { width: 8px; height: 8px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
.pn-section { padding: 16px 18px 8px !important; font-weight: 600; }
.pn-list { padding: 0 18px !important; display: grid; gap: 8px; }
.pn-list li { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.pn-list .ph.sm { width: 32px; }
.pn-checks { padding: 0 18px !important; display: grid; gap: 9px; }
.pn-checks li { display: flex; align-items: center; gap: 10px; }
.pn-checks li::before { content: ""; width: 16px; height: 16px; border: 1.5px solid var(--control); border-radius: 4px; flex: none; }
.pn-checks li.on::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 5px var(--white); }
.pn-checks li.sub { padding-left: 26px; }
.pn-fields { padding: 16px 18px 0; display: grid; gap: 10px; }
.pn-fields p { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pn-fields span { color: var(--muted); }
.pn-fields b { font-weight: 500; padding: 6px 12px; border: 1px solid #D2D5D8; border-radius: 8px; min-width: 96px; }

/* Segment builder */
.segment { padding: 22px; background: var(--white); }
.sg-label { font-weight: 600; margin-bottom: 8px !important; }
.sg-input { padding: 9px 12px; border: 1px solid #D2D5D8; border-radius: 8px; margin-bottom: 20px !important; }
.sg-group { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #FAFAF8; display: grid; gap: 8px; }
.sg-cond { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-cond b, .sg-cond span { padding: 7px 10px; background: var(--white); border: 1px solid #D2D5D8; border-radius: 8px; font-weight: 500; }
.sg-cond span { font-weight: 400; }
.sg-or { font-size: 11px; font-weight: 700; color: var(--muted); }
.sg-and { position: relative; text-align: center; margin: 10px 0 !important; }
.sg-and::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line); }
.sg-and span { position: relative; padding: 2px 10px; background: var(--white); font-size: 11px; font-weight: 700; color: var(--muted); }

/* Email on a phone */
.shot-phone { display: flex; flex-direction: column; align-items: center; }
.phone { width: 300px; max-width: 100%; padding: 10px; background: var(--ink); border-radius: 40px; box-shadow: 0 16px 40px rgba(20, 22, 26, 0.18); }
.ph-screen { background: var(--white); border-radius: 31px; overflow: hidden; font: 13px/1.4 Arial, Helvetica, sans-serif; color: var(--ink); min-height: 520px; }
.ph-screen p { margin: 0; }
.ph-meta { display: grid; gap: 2px; padding: 34px 18px 12px !important; border-bottom: 1px solid #E5E5E5; font-family: var(--text); }
.ph-meta span { color: var(--muted); }
.ph-mail { padding: 20px 18px; }
.ph-mail .em-h { font-size: 19px; }
.items { list-style: none; margin: 0 0 16px; padding: 0; }
.items li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #E5E5E5; }
.items li:last-child { border-bottom: 1px solid #E5E5E5; }
.items span:not(.ph) { flex: 1; display: grid; }
.items small { color: #555555; font-size: 12px; }
.items em { font-style: normal; font-weight: 700; }
.em-btn { text-align: center; padding: 11px; background: #111111; color: var(--white); border-radius: 4px; font-weight: 700; }

/* Narrow screens: simplify the editor to its canvas */
@media (max-width: 760px) {
  .ed-body { grid-template-columns: 1fr; min-height: 0; }
  .ed-panel, .ed-device, .pill { display: none; }
  .ed-actions .btn-ui:not(:first-child) { display: none; }
  .ed-actions { margin-left: auto; }
  .ed-canvas { padding: 16px 10px 20px; }
  .email { padding: 16px 12px; }
  .em-products { gap: 8px; padding: 6px; }
  .em-card { font-size: 11px; }
  .em-card i { font-size: 10.5px; padding: 6px 2px; }
  main > section { padding-top: 64px; padding-bottom: 64px; }
}
@media (max-width: 560px) {
  .top nav { width: 100%; gap: 20px; }
  .top nav .button { margin-left: auto; }
}

/* Legal + support pages */
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal > * { max-width: 760px; }
.legal { padding-top: 24px; padding-bottom: 64px; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: var(--small); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.legal .meta { color: var(--muted); font-size: var(--small); }
.table-wrap { overflow-x: auto; }
main > .hero + h2, main > h2, main > p, main > ul { max-width: calc(760px + 2 * var(--gutter)); }
main > h2 { margin-top: 40px; font-size: 24px; }
main > ul { padding-left: calc(var(--gutter) + 20px); }

.bottom {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: var(--small);
}
.bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.bottom p { color: var(--muted); margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform 0.15s ease; }
}
main > section.hero:has(+ h2) { padding-bottom: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Price step chart label positions — generated by site/build.mjs */
.sc-x-250 { left: 7.071%; }
.sc-x-1000 { left: 14.142%; }
.sc-x-5000 { left: 31.623%; }
.sc-x-10000 { left: 44.721%; }
.sc-x-25000 { left: 70.711%; }
.sc-x-50000 { left: 100.000%; }
.sc-y-0 { bottom: 0.000%; }
.sc-y-100 { bottom: 25.000%; }
.sc-y-200 { bottom: 50.000%; }
.sc-y-300 { bottom: 75.000%; }
.sc-p-free { left: 3.536%; bottom: 0.000%; }
.sc-p-starter { left: 10.607%; bottom: 4.750%; }
.sc-p-growth { left: 22.882%; bottom: 12.250%; }
.sc-p-pro { left: 38.172%; bottom: 22.250%; }
.sc-p-scale { left: 57.716%; bottom: 47.250%; }
.sc-p-business { left: 85.355%; bottom: 87.250%; }
