h1, h2 { letter-spacing: -0.03em; }
.section { padding: clamp(32px, 4.6vw, 60px) 0; }
.section--tight { padding-top: clamp(8px, 1.6vw, 18px); }
.section-head--gap { margin-top: clamp(20px, 3vw, 36px); }
.section-head--wide { max-width: 46em; }
.section--tint { background: var(--tint); }

.hero--look { padding-bottom: clamp(16px, 3vw, 36px); }
.hero--look .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero--look .hero-copy { padding-top: clamp(28px, 4.5vw, 64px); }
.hero--in { padding-top: clamp(24px, 3.4vw, 44px); }
.hero--in .hero-copy { padding-top: clamp(8px, 3.4vw, 48px); }
.hero--tool .hero-copy { padding-top: clamp(4px, 2vw, 28px); }
.hero--tool .calc { margin-top: 18px; }
.hero--tool .tagline { font-size: clamp(17px, 1.5vw, 19px); }
.hero--tool h1 { font-size: clamp(32px, 3.8vw, 48px); }
.hero-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 12px; letter-spacing: 0.16em; }
.hero-kicker .pat { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tile) center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.hero--look h1 { max-width: 12em; margin: 0 0 0.45em; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.06; }
.hero--look .tagline { max-width: 25em; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--muted); }
.hero--look .cta-row { margin-top: clamp(24px, 3vw, 36px); }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: clamp(18px, 2.4vw, 28px) 0 0; }

.board { --px: 0; --py: 0; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: start; width: 100%; min-width: 0; }
.board--solo { grid-template-columns: 1fr; justify-items: center; }
.board-col { display: grid; gap: 14px; min-width: 0; }
.board-col--in { margin-top: 150px; justify-items: end; }
.board-col--out { margin-top: 110px; justify-items: start; }
.board--one .board-col--in { margin-top: 170px; }
.board--one .board-col--out { margin-top: 290px; }
.board-col--phone { position: relative; z-index: 2; }
.board .phone { --w: clamp(180px, 15vw, 214px); --tilt: 0deg; filter: drop-shadow(0 22px 34px var(--phone-shadow)); transform: perspective(900px) rotateY(calc(var(--px) * 7deg)) rotateX(calc(var(--py) * -5deg)); transition: transform 0.25s ease-out; }
.board .phone.is-ping { animation: ping 0.45s ease-out; }
.pin { position: relative; z-index: 1; display: grid; gap: 2px; width: 100%; max-width: 156px; padding: 11px 12px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 32px rgba(0, 0, 0, 0.12); translate: calc(var(--px) * -10px) calc(var(--py) * -8px); transition: translate 0.25s ease-out; }
.board-col--out .pin { translate: calc(var(--px) * 12px) calc(var(--py) * 9px); }
.pin i { width: 36px; height: 36px; margin-bottom: 6px; border-radius: 50%; background: var(--tile) center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.pin b { font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.pin span, .pin small { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.pin--next span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.board-col--in .pin.is-leaving { animation: into-app 0.6s cubic-bezier(0.5, 0, 0.9, 0.4) forwards; }
.board-col--in .pin.is-entering { animation: rise-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.board-col--out .pin.is-leaving { animation: drift-off 0.55s ease-in forwards; }
.board-col--out .pin.is-entering { animation: from-app 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; }
@keyframes into-app { to { transform: translateX(115%) scale(0.35); opacity: 0; } }
@keyframes rise-in { from { transform: translateY(46px); opacity: 0; } }
@keyframes drift-off { to { transform: translateY(-46px); opacity: 0; } }
@keyframes from-app { from { transform: translateX(-115%) scale(0.35); opacity: 0; } }
@keyframes ping { 40% { scale: 1.025; } }



.proof { padding: clamp(16px, 3vw, 36px) 0 clamp(20px, 3.4vw, 44px); }
.proof-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 4.5vw, 64px); align-items: end; padding: clamp(24px, 4.6vw, 60px); border-radius: 28px; background: var(--tint); color: inherit; text-decoration: none; transition: background 0.15s ease; }
.proof-card h2 { margin: 0; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.04; text-wrap: balance; text-decoration: underline transparent 3px; text-underline-offset: 7px; transition: text-decoration-color 0.15s ease; }
.proof-card:hover h2 { text-decoration-color: var(--accent); }
.proof-summary { max-width: 26em; margin: 0 0 18px; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.45; color: var(--soft); }
.proof-stats { display: inline-flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 600; color: var(--soft); }
.proof-stats > span { display: inline-flex; align-items: center; gap: 5px; }
.proof-y { border-radius: 5px; }
.sources { margin: 14px 0 0; }


.promo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 40px); align-items: center; padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.promo-icon { width: clamp(84px, 9vw, 112px); height: auto; border-radius: 22%; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14); }
.promo .label { margin-bottom: 4px; }
.promo h2 { margin: 0 0 6px; font-size: clamp(24px, 2.8vw, 32px); }
.promo p:not(.label) { max-width: 34em; margin: 0 0 8px; color: var(--soft); }
.promo > .btn { white-space: nowrap; }
.footer-also { display: flex; align-items: center; gap: 8px; color: #f6f3ec; text-decoration: none; }
.footer-also img { border-radius: 5px; }
.footer-brand .label { margin: 16px 0 6px; }

.hero--jobs .jobs-head { max-width: 44em; margin-bottom: clamp(20px, 3vw, 34px); }
.hero--jobs .jobs-head h1 { max-width: none; }
.jobs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.jobs-list { display: grid; gap: 8px; align-content: start; }
.job { position: relative; display: grid; gap: 5px; padding: 14px 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.job:hover { border-color: var(--line-strong); }
.job b { font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
.job span { display: none; font-size: 15.5px; line-height: 1.45; color: var(--soft); }
.job.is-on { border-color: var(--ink); box-shadow: var(--shadow); }
.job.is-on span { display: block; }
.job i { position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--accent); }
.job.is-on i { animation: job-fill 5s linear forwards; }
.jobs.is-held .job.is-on i { animation: none; width: 100%; }
@keyframes job-fill { to { width: 100%; } }
.jobs-stage { display: grid; grid-template-columns: 32% minmax(0, 1fr); align-items: center; min-width: 0; }
.jobs-stage .phone { --w: clamp(190px, 17vw, 236px); grid-area: 1 / 1 / 2 / 3; justify-self: start; z-index: 2; transition: transform 0.45s ease; }
.jobs-stage .paper { grid-area: 1 / 2 / 2 / 3; align-self: center; opacity: 0.6; transform: rotate(1.2deg) scale(0.94); transition: transform 0.45s ease, opacity 0.45s ease; }
.jobs.is-paper .jobs-stage .paper { position: relative; z-index: 3; opacity: 1; transform: rotate(0deg) scale(1.05); }
.jobs.is-paper .jobs-stage .phone { transform: translateX(-4%) scale(0.92); }
.jobs-screens { aspect-ratio: 603 / 1311; }
.jobs-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s ease; }
.jobs-screens img.is-on { opacity: 1; }
.jobs-cta { margin-top: clamp(22px, 3vw, 34px); }
.more { margin-top: 22px; padding: 2px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.more summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.more .products { padding: 4px 0 20px; }

.picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pick { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 14px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform 0.15s ease, border-color 0.15s ease; }
.pick:hover { transform: translateY(-2px); border-color: var(--ink); }
.pick i { grid-row: span 2; width: 54px; height: 54px; border-radius: 50%; background: var(--tile) center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.pick b { align-self: end; font-size: 16.5px; line-height: 1.2; letter-spacing: -0.01em; }
.pick span { align-self: start; font-size: 13.5px; line-height: 1.3; color: var(--muted); }

.try-grid .phone { justify-self: center; }
.row-media--peek, .try-grid .peek { max-height: 400px; overflow: hidden; align-items: flex-start; padding-bottom: 0; -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 100%); mask-image: linear-gradient(180deg, #000 76%, transparent 100%); }
.try-grid .peek { display: flex; justify-content: center; }
.row-media--paper { padding: clamp(18px, 3vw, 32px); }

.paper { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 44px rgba(0, 0, 0, 0.16); }
.docstack { display: grid; grid-template-columns: 16% minmax(0, 1fr); align-items: end; min-width: 0; padding-bottom: 28px; }
.docstack .phone { --w: clamp(120px, 11vw, 152px); grid-area: 1 / 1 / 2 / 3; justify-self: start; z-index: 2; margin-bottom: -28px; }
.docstack .paper { grid-area: 1 / 2 / 2 / 3; align-self: center; transform: rotate(1.2deg); }
.hero--pro .hero-grid { align-items: center; }
.hero--pro .hero-copy { padding-top: 0; }

.pro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; padding: clamp(24px, 4.4vw, 56px); border-radius: 28px; background: var(--tint); }
.pro h2 { margin-top: 4px; }
.pro-copy > p:not(.label) { max-width: 31em; color: var(--soft); }
.pro-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 22px 0 0; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.rules li { display: grid; gap: 1px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.rules b { font-size: 15px; line-height: 1.3; }
.rules span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.rules--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }


.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.products h3 { margin: 0 0 2px; font-size: 16px; }
.products .chiplist { margin-top: 8px; }
.products .chiplist li { background: var(--card); font-size: 14px; padding: 6px 12px; }

.plan { display: grid; gap: 14px; }
.plan-step { border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.plan-step header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--tint); }
.plan-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; }
.plan-step h3 { flex: 1; min-width: 8em; margin: 0; }
.plan-tag { padding: 4px 11px; border-radius: 999px; background: var(--green); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.plan-tag--quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); }
.plan-step dl { display: grid; margin: 0; }
.plan-step dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 20px; padding: 12px 20px; }
.plan-step dl > div + div { border-top: 1px solid var(--line); }
.plan-step dt { padding-top: 3px; font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.plan-step dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--soft); }
.notice--pro { margin: 22px 0 0; font-size: 15px; line-height: 1.5; }

.sheet { margin: 0 0 28px; padding: clamp(18px, 3vw, 32px); border-radius: 10px; background: #fff; color: #1c1c1e; border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.sheet header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 14px; }
.sheet h2 { margin: 0; font-size: 22px; }
.sheet header p { margin: 0; font-size: 14px; color: #555; }
.sheet .rule { display: inline-block; width: 140px; border-bottom: 1px solid #999; }
.sheet-scroll { overflow-x: auto; }
.sheet table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.sheet th, .sheet td { height: 30px; padding: 6px 8px; border: 1px solid #999; text-align: left; }
.sheet th { background: #f2f2f2; font-weight: 600; }
.sheet th:last-child { width: 28%; }
.sheet footer { margin-top: 10px; font-size: 12.5px; color: #555; }
.sheet-form { display: grid; margin: 0; border: 1px solid #999; }
.sheet-form > div { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 44px; }
.sheet-form > div + div { border-top: 1px solid #999; }
.sheet-form dt { padding: 10px 12px; border-right: 1px solid #999; background: #f2f2f2; font-size: 13.5px; font-weight: 600; }
.sheet-form dd { margin: 0; padding: 10px 12px; }
.sheet-form .tall { min-height: 120px; }
.sheet-form .boxes { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.sheet-form .boxes span::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 7px; border: 1px solid #555; vertical-align: -2px; }

.guide h2 { margin-top: 1.5em; }
.guide > p:first-child { font-size: 19px; color: var(--ink); }
.guide blockquote { margin: 16px 0; padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--tint); }
.guide blockquote p { margin: 0; color: var(--ink); }
.guide .table { overflow-x: auto; margin: 18px 0; }
.guide table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; background: var(--card); border: 1px solid var(--line); }
.guide th, .guide td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide thead th { background: var(--tint); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.guide td:first-child { font-weight: 600; color: var(--ink); }
.guide .calc { margin: 22px 0; max-width: none; }
.guide-about { margin-top: 36px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--tint); }
.guide-about b { display: block; margin-bottom: 6px; }
.guide-about p { margin: 0; font-size: 15.5px; }
.guide-date { margin-top: 18px; }
.gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gcard { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform 0.15s ease, border-color 0.15s ease; }
.gcard:hover { transform: translateY(-3px); border-color: var(--ink); }
.gcard small { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.gcard small i { width: 20px; height: 20px; border-radius: 50%; background: var(--tile) center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.gcard b { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.gcard span { font-size: 15px; line-height: 1.45; color: var(--muted); }

.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.langs a { display: block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 14.5px; text-decoration: none; }
.langs a:hover { border-color: var(--ink); }
.langs a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.local-langs-label { margin: 30px 0 10px; }
.local-app { margin: 14px 0 0; font-weight: 600; color: var(--soft); }
.local-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.local-features li { padding: 20px 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); font-size: 17px; line-height: 1.45; }
.home-langs { padding: 0 0 clamp(20px, 3vw, 36px); }
.closing--dark { margin-top: clamp(16px, 3vw, 36px); padding-bottom: 0; }
.section--rows { padding-top: 0; }
.row { padding: clamp(20px, 3vw, 40px) 0; }
.row-media .board { padding: 0 clamp(8px, 1.6vw, 20px); }

@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr repeat(5, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 1080px) {
  .picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero--look .hero-grid { grid-template-columns: 1fr; }
  .hero--look .hero-copy { padding-top: 16px; }
  .hero--in .hero-copy, .hero--tool .hero-copy { padding-top: 4px; }
  .local-features { grid-template-columns: 1fr; }
  .board { gap: 10px; margin-top: 8px; }
  .board .phone { --w: clamp(150px, 42vw, 220px); }
  .board-col--in { margin-top: 44px; }
  .board-col--out { margin-top: 12px; }
  .board--one .board-col--in { margin-top: 60px; }
  .board--one .board-col--out { margin-top: 150px; }
  .pin { min-width: 0; padding: 9px 10px 10px; border-radius: 13px; }
  .pin i { width: 28px; height: 28px; }
  .pin b { font-size: 13.5px; }
  .pin span, .pin small { font-size: 11px; }
  .pin--next span { font-size: 9.5px; letter-spacing: 0.05em; }
  .proof-card, .pro, .jobs { grid-template-columns: 1fr; }
  .jobs-stage { max-width: 520px; margin: 0 auto; width: 100%; }
  .products { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pick { gap: 1px 10px; padding: 10px 12px; border-radius: 14px; }
  .pick i { width: 38px; height: 38px; }
  .pick b { font-size: 15px; }
  .pick span { font-size: 12.5px; }
  .gcards { grid-template-columns: 1fr; }
  .promo { grid-template-columns: auto minmax(0, 1fr); }
  .promo > .btn { grid-column: 1 / -1; justify-self: start; white-space: normal; }
  .jobs-stage { grid-template-columns: 1fr; justify-items: center; }
  .jobs-stage .phone { grid-area: 1 / 1; justify-self: center; }
  .jobs-stage .paper { grid-area: 1 / 1; width: 96%; opacity: 0; }
  .job b { font-size: 16.5px; }
  .docstack { grid-template-columns: 1fr; }
  .docstack .phone { display: none; }
  .docstack .paper { grid-area: auto; transform: none; }
  .plan-step dl > div { grid-template-columns: 1fr; }
  .sheet-form > div { grid-template-columns: 1fr; }
  .sheet-form dt { border-right: 0; border-bottom: 1px solid #999; }
  .sheet-form dd { min-height: 40px; }
  .sheet .rule { width: 90px; }
}
@media (max-width: 420px) {
  .rules { grid-template-columns: 1fr; }
}
@media print {
  body:has(.sheet) { background: #fff; }
  body:has(.sheet) .nav, body:has(.sheet) .footer, body:has(.sheet) main > :not(:has(.sheet)), body:has(.sheet) .guide > :not(.sheet) { display: none !important; }
  .sheet { margin: 0; padding: 0; border: 0; box-shadow: none; break-after: page; }
  .sheet-scroll { overflow: visible; }
  .sheet table { min-width: 0; }
  .sheet::after { content: "fermento.guide"; display: block; margin-top: 12px; font-size: 11px; color: #777; }
  body[data-printing="log"] [data-sheet="action"], body[data-printing="action"] [data-sheet="log"] { display: none; }
}
