/*
 * Retisynq landing and legal pages. Hand-written, no framework.
 * Type: Apfel Grotezk, Mazius Display Extra Italic and Necto Mono, all by Collletttivo under the
 * SIL Open Font License (assets/fonts/OFL-*.txt).
 */

@font-face { font-family: 'Apfel Grotezk'; src: url(fonts/ApfelGrotezk-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Apfel Grotezk'; src: url(fonts/ApfelGrotezk-Mittel.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Apfel Grotezk'; src: url(fonts/ApfelGrotezk-Fett.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Apfel Grotezk'; src: url(fonts/ApfelGrotezk-Satt.woff2) format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Mazius'; src: url(fonts/MaziusDisplay-Extraitalic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Necto Mono'; src: url(fonts/NectoMono-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --paper: #F3EEE4;
  --sand: #E9E1D2;
  --card: #FFFFFF;
  --ink: #1D1B16;
  --ink-2: #4A463C;
  --ink-3: #6B6556;
  --rule: #D8CFBF;
  --rule-2: #CFC5B3;
  --green: #17643A;
  --green-deep: #0E4426;
  --green-hover: #12562F;
  --wattle: #F2C443;
  --page: 1360px;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: 'Apfel Grotezk', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --serif: 'Mazius', Georgia, 'Times New Roman', serif;
  --mono: 'Necto Mono', ui-monospace, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-hover); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 24px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--green); }
.kicker { font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em; color: var(--green); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; color: var(--ink-3); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.h-display { font-size: clamp(54px, 8.6vw, 124px); line-height: 0.9; font-weight: 900; letter-spacing: -0.045em; text-wrap: balance; }
.h-display .it { font-size: 1.06em; }
.h-section { font-size: clamp(40px, 5vw, 66px); line-height: 0.95; font-weight: 900; letter-spacing: -0.04em; text-wrap: balance; }
.h-card { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; font: 700 17px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-go { background: var(--green); color: #FFFFFF; box-shadow: inset 0 -3px 0 var(--green-deep); }
.btn-go:hover { background: var(--green-hover); color: #FFFFFF; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.btn-quiet:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-wattle { background: var(--wattle); color: var(--ink); box-shadow: inset 0 -3px 0 #C99B20; }
.btn-wattle:hover { background: #F5CD5C; color: var(--ink); }
.btn-big { min-height: 56px; font-size: 19px; padding: 0 28px; }

/* Header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-block: 22px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 34px; width: auto; }
.site-nav { display: flex; gap: 8px 28px; flex-wrap: wrap; font-size: 16px; }
.site-nav a, .head-actions a.link { color: #3A362E; text-decoration: none; font-weight: 500; }
.site-nav a:hover, .head-actions a.link:hover { color: var(--green); }
.head-actions { display: flex; align-items: center; gap: 18px; }
@media (max-width: 900px) { .site-nav { display: none; } }

/* Hero */
.hero { padding-top: clamp(28px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero-title { display: flex; flex-direction: column; gap: 22px; }
.hero-side { display: flex; flex-direction: column; gap: 24px; padding-bottom: 8px; }
.hero-side .lead { max-width: 34em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.price-line { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.film { position: relative; margin: clamp(32px, 5vw, 56px) 0 0; border-radius: clamp(18px, 2.4vw, 28px); overflow: hidden; aspect-ratio: 16 / 10; background: #E6E8EC; box-shadow: 0 30px 80px -40px rgba(40, 30, 10, 0.45); }
.film video { width: 100%; height: 100%; object-fit: cover; }
.grain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: multiply; opacity: 0.5; }
.film-tags { position: absolute; left: clamp(10px, 2vw, 24px); right: clamp(10px, 2vw, 24px); bottom: clamp(10px, 2vw, 24px); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.tag { font-family: var(--mono); font-size: 13px; padding: 10px 14px; border-radius: 10px; background: rgba(243, 238, 228, 0.88); color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tag-dark { background: rgba(29, 27, 22, 0.82); color: var(--paper); }
@media (max-width: 560px) { .tag { font-size: 11px; padding: 7px 10px; } .film { aspect-ratio: 4 / 3; } }

/* Sources row */
.sources { padding-block: clamp(40px, 6vw, 72px); }
.sources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); border-top: 1.5px solid var(--ink); }
.source { padding: 20px 22px 6px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--rule); }
.source:first-child { border-left: 0; padding-left: 0; }
.source .mono { font-size: 12.5px; color: var(--green); }
@media (max-width: 760px) { .source { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--rule); padding-bottom: 18px; } }

/* Under the lawn */
.lawn-band { padding-inline: clamp(8px, 2vw, 24px); }
.lawn-panel { max-width: 1440px; margin: 0 auto; border-radius: clamp(24px, 3vw, 36px); background: var(--sand); padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 48px); align-items: center; }
.lawn-copy { flex: 1 1 360px; max-width: 470px; display: flex; flex-direction: column; gap: 22px; }
.lawn-copy .h-section { font-size: clamp(38px, 4.1vw, 56px); line-height: 0.96; }
.lawn-copy .lead { font-size: 18px; }
.callouts { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.callouts li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 16px; line-height: 1.45; }
.num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 12.5px/1 var(--mono); display: grid; place-items: center; }
.num-under { background: var(--wattle); color: var(--ink); }
.world { flex: 999 1 560px; min-width: 0; position: relative; }
.world svg { width: 100%; height: auto; }
.lift { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px 0 14px; border-radius: 14px; border: 0; background: var(--ink); color: var(--paper); font: 700 17px/1 var(--sans); cursor: pointer; align-self: flex-start; }
.lift:hover { background: #2C2922; }
.lift .knob { width: 44px; height: 26px; border-radius: 13px; background: #4A463C; position: relative; transition: background 0.3s; }
.lift .knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); transition: transform 0.3s cubic-bezier(0.3, 1.3, 0.5, 1); }
.lift[aria-pressed='true'] .knob { background: var(--wattle); }
.lift[aria-pressed='true'] .knob::after { transform: translateX(18px); }

.by-turf, .by-sprays { transition: transform 1.1s cubic-bezier(0.3, 1.25, 0.5, 1), opacity 0.6s ease; }
.lifted .by-turf { transform: translateY(-72px); }
.lifted .by-sprays { opacity: 0; }
.by-surface { transition: opacity 0.6s ease; }
.lifted .by-surface { opacity: 0.22; }
.by-riser { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1.1s cubic-bezier(0.3, 1.25, 0.5, 1); }
.lifted .by-riser { transform: scaleY(var(--k)); }
.by-pipes { opacity: 0.9; }
.marker-under { opacity: 0; transition: opacity 0.5s ease 0.4s; }
.lifted .marker-under { opacity: 1; }
@keyframes rq-stream { to { stroke-dashoffset: -34; } }
@keyframes rq-drops { to { stroke-dashoffset: -15; } }
@keyframes rq-breathe { 0%, 100% { fill-opacity: 0.12; } 50% { fill-opacity: 0.22; } }
@keyframes rq-sway { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(1.6px); } }
.by-stream { animation: rq-stream 1.3s linear infinite; }
.by-drops { animation: rq-drops 1.6s linear infinite; }
.by-spray { animation: rq-breathe 3.2s ease-in-out infinite; }
.by-wash { animation: rq-sway 3s ease-in-out infinite; }
.world.paused .by-stream, .world.paused .by-drops, .world.paused .by-spray, .world.paused .by-wash { animation-play-state: paused; }

/* The planner, in clips */
.section { padding-top: clamp(64px, 9vw, 120px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head .h-section { max-width: 11em; }
.section-head p { font-size: 18px; color: var(--ink-2); max-width: 30em; }
.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: 22px; background: var(--card); box-shadow: 0 1px 0 #DCD2C1, 0 18px 40px -28px rgba(40, 30, 10, 0.35); display: flex; flex-direction: column; }
.tile-wide { grid-column: span 2; }
@media (max-width: 800px) { .tile-wide { grid-column: auto; } }
.clip { aspect-ratio: 16 / 10; background: #EEF0F3; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.tile-body p { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.tile-row { flex-direction: row; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.tile-row .h-card { font-size: 24px; }
.tile-note { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.tile-green { background: var(--green); color: var(--paper); box-shadow: none; }
.tile-green .inner { padding: 26px 26px 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tile-green .big { font-size: 27px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.tile-green .inner p:last-child { font-size: 16px; line-height: 1.5; color: #CFE3D3; }
.tile-green .foot { padding: 22px 26px 26px; font-family: var(--mono); font-size: 12px; color: #9FC7AB; }
.tile-green .mono { color: var(--wattle); font-size: 12.5px; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.steps li { border-top: 1.5px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.steps .it { font-size: 72px; line-height: 0.8; }
.steps h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.steps p { color: var(--ink-2); }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 18px; }
.price { border-radius: 28px; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.price-free { background: var(--card); box-shadow: inset 0 0 0 1.5px #DCD2C1; }
.price-paid { background: var(--ink); color: var(--paper); }
.price .mono { font-size: 13px; color: var(--ink-3); }
.price-paid .mono { color: var(--wattle); }
.amount { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.amount strong { font-size: 64px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.amount span { color: var(--ink-2); }
.price-paid .amount span { color: #CFC8B8; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.4; }
.ticks li::before { content: ''; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.price-paid .ticks li::before { background-color: var(--wattle); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-5' fill='none' stroke='%231D1B16' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.price .btn { align-self: flex-start; margin-top: auto; }
.disclaimer { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--ink-3); max-width: 52em; }

/* Installers */
.trade { border-radius: clamp(24px, 3vw, 36px); background: var(--green); color: var(--paper); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 32px; align-items: center; }
.trade .kicker { color: var(--wattle); }
.trade .h-section { font-size: clamp(38px, 4.6vw, 60px); line-height: 0.96; }
.trade .it { color: var(--wattle); }
.trade .lead { color: #D6E8DA; font-size: 18px; max-width: 32em; }
.trade-copy { display: flex; flex-direction: column; gap: 18px; }
.trade-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; background: rgba(243, 238, 228, 0.18); border-radius: 18px; overflow: hidden; }
.trade-list li { background: var(--green); padding: 18px 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.trade-list .mono { font-size: 13px; color: var(--wattle); }

/* Questions */
.faq { max-width: 960px; }
.faq .h-section { margin-bottom: 18px; }
.faq-list { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 24px/1 var(--mono); color: var(--green); transition: transform 0.2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 46em; }

/* Closing call */
.closer { padding-block: clamp(64px, 9vw, 120px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.closer h2 { font-size: clamp(48px, 7vw, 104px); line-height: 0.9; font-weight: 900; letter-spacing: -0.045em; text-wrap: balance; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); }
.site-foot .wrap { padding-block: 28px 40px; display: flex; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }
.site-foot nav { display: flex; gap: 22px; }
.credits { width: 100%; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink-3); }

/* Legal and contact pages */
.legal { max-width: 76ch; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(64px, 9vw, 112px); }
.legal h1 { font-size: clamp(44px, 6vw, 76px); line-height: 0.95; font-weight: 900; letter-spacing: -0.04em; margin: 14px 0 16px; }
.legal .meta { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.draft { margin: 22px 0 6px; padding: 12px 14px; border-radius: 10px; background: #FCEFC4; box-shadow: inset 0 0 0 1px #E9C75A; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: #5A4610; }
.legal .lead { margin: 22px 0 8px; }
.legal h2 { font-size: 25px; font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 10px; display: flex; gap: 12px; align-items: baseline; }
.legal h2 .n { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--green); font-size: 30px; }
.legal p, .legal li { line-height: 1.62; color: #2C2922; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.legal th { font-family: var(--mono); font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 640px) {
  .legal thead { display: none; }
  .legal tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .legal td { display: block; border: 0; padding: 4px 0; }
  .legal td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-transform: uppercase; }
}
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; margin-top: 28px; }
.contact-card { background: var(--card); border-radius: 18px; padding: 22px; box-shadow: inset 0 0 0 1.5px #DCD2C1; display: flex; flex-direction: column; gap: 8px; }
.contact-card .mono { font-size: 12.5px; color: var(--green); }
.contact-card a.big { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; word-break: break-word; }
.contact-card p { color: var(--ink-2); font-size: 16px; }

@media print {
  .site-head, .site-foot, .draft, .skip { display: none !important; }
  body { background: #FFFFFF; }
  .legal { max-width: none; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .by-stream, .by-drops, .by-spray, .by-wash { animation: none; }
  .by-turf, .by-riser, .by-sprays, .by-surface { transition: none; }
}
