/* HemTally styles: Home and Privacy Policy */
/* Design tokens */
:root {
  --background: #446926;
  --surface: #679442;
  --text: #fbfbfb;
  --muted-text: #fbfbfb;
  --primary: #adea7b;
  --secondary: #8de29f;
  --accent: #66ebdb;
  --button-text: #15151b;
  --heading-font: 'Sofia Sans Condensed', 'Arial Narrow', sans-serif;
  --body-font: 'Sofia Sans', Arial, sans-serif;
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 8rem;
  --r-small: .5rem; --r-mid: 1.5rem; --r-large: 3rem;
  --line: 1px solid color-mix(in srgb, var(--text) 24%, transparent);
  --shadow-one: 0 .5rem 1.3rem color-mix(in srgb, var(--background) 65%, transparent), 0 .1rem .2rem color-mix(in srgb, var(--primary) 13%, transparent);
  --shadow-two: 0 1rem 2.5rem color-mix(in srgb, var(--background) 70%, transparent), 0 .3rem .5rem color-mix(in srgb, var(--accent) 10%, transparent);
  --shadow-three: 0 2rem 5rem color-mix(in srgb, var(--background) 80%, transparent), 0 .4rem 1rem color-mix(in srgb, var(--primary) 15%, transparent);
  --ease: cubic-bezier(.2,.8,.2,1);
  --header-height: 4rem;
}
/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: clamp(16px, .55vw + 11px, 22px); scroll-behavior: smooth; overflow-x: clip; scrollbar-color: var(--secondary) var(--background); }
body { margin: 0; overflow-x: clip; background: var(--background); color: var(--text); font-family: var(--body-font); }
::selection { background: var(--accent); color: var(--button-text); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
/* Base typography */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(2.8rem, 6vw, 5.6rem); }
h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
p, li { line-height: 1.7; text-wrap: pretty; }
p { margin-bottom: 1.2em; }
/* Layout */
.shell { width: min(100% - 2.5rem, 1360px); margin-inline: auto; }
.section { position: relative; padding-block: clamp(4rem, 9vw, 8rem); }
.section::before { content: ''; pointer-events: none; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px); background-size: 1.75rem 1.75rem; opacity: .2; }
.section > .shell { position: relative; }
/* Components */
.site-header { position: relative; z-index: 10; height: var(--header-height); background: color-mix(in srgb, var(--background) 86%, var(--surface)); border-bottom: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: 100%; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; font-family: var(--heading-font); font-size: 1.55rem; font-weight: 800; min-width: 0; }
.brand-chip { display: grid; place-items: center; padding: .13rem; border-radius: var(--r-small); background: color-mix(in srgb, var(--text) 92%, var(--surface)); flex-shrink: 0; }
.brand img, .footer-brand img { display: block; width: 2.2rem; height: 2.2rem; object-fit: contain; }
.brand-name { min-width: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.nav-button, .button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 3rem; padding: .7rem 1.2rem; text-decoration: none; font-weight: 600; font-size: .96rem; border: 1px solid var(--primary); transition: transform .2s var(--ease), background .2s var(--ease); }
.nav-button { background: var(--primary); color: var(--button-text); box-shadow: .25rem .25rem 0 var(--secondary); white-space: nowrap; }
.nav-button[aria-current="page"] { background: var(--secondary); }
.button:hover, .nav-button:hover { transform: translateY(-3px); }
.button-primary { background: var(--primary); color: var(--button-text); box-shadow: .35rem .35rem 0 var(--secondary); }
.button-outline { background: color-mix(in srgb, var(--surface) 38%, transparent); color: var(--text); border-color: color-mix(in srgb, var(--text) 65%, transparent); box-shadow: .35rem .35rem 0 color-mix(in srgb, var(--secondary) 45%, transparent); }
.eyebrow { color: var(--primary); font-size: .95rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.skip-link { position: fixed; top: -8rem; left: var(--s4); z-index: 100; background: var(--primary); color: var(--button-text); padding: var(--s3); }
.skip-link:focus { top: var(--s3); }
.back-top { position: fixed; bottom: 1.5rem; right: 1.6rem; z-index: 30; border: var(--line); border-radius: 50%; width: 3rem; height: 3rem; font-size: 1.6rem; background: var(--surface); color: var(--text); box-shadow: var(--shadow-one); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.back-top.is-visible { opacity: 1; pointer-events: auto; }
.scroll-progress { position: fixed; right: 0; top: 0; height: 100%; width: .2rem; z-index: 40; background: linear-gradient(to bottom, var(--accent) var(--scroll,0%), transparent var(--scroll,0%)); pointer-events: none; }
/* Hero */
.hero-frame { height: 100vh; height: 100svh; height: 100dvh; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); }
.hero-frame > main { display: grid; min-height: 0; }
.hero { position: relative; height: 100%; min-height: 0; display: grid; place-items: center; isolation: isolate; background: radial-gradient(ellipse at 52% 30%, color-mix(in srgb, var(--secondary) 23%, var(--background)), var(--background) 70%); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-radial-gradient(ellipse at 30% 70%, transparent 0 2.4rem, color-mix(in srgb, var(--accent) 9%, transparent) 2.5rem 2.57rem), radial-gradient(ellipse at 70% 30%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 60%); }
.hero-ribbons { position: absolute; inset: 0; overflow: clip; pointer-events: none; opacity: .19; }
.ribbon { width: 180%; position: absolute; left: -40%; white-space: nowrap; font: 800 clamp(2.5rem, 7vw, 7rem)/1 var(--heading-font); letter-spacing: .13em; color: var(--secondary); }
.ribbon-one { top: 30%; transform: rotate(-14deg); animation: drift-one 30s linear infinite alternate; }
.ribbon-two { top: 72%; transform: rotate(13deg); animation: drift-two 35s linear infinite alternate; }
.hero-content { --hs: 1; width: min(100% - 2.5rem, 1100px); height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--hs) * min(2svh, 1rem)); text-align: center; padding-block: calc(var(--hs) * min(3svh, 1.4rem)); }
.hero-copy { position: relative; z-index: 2; flex-shrink: 0; }
.hero h1 { margin: 0; font-size: calc(var(--hs) * clamp(3rem, min(15vw, 12svh), 10rem)); line-height: .81; letter-spacing: -.035em; }
.hero h1 span { font-weight: 400; }
.hero h1 strong { font-weight: 800; color: var(--primary); }
.hero-copy p { max-width: 35rem; margin: calc(var(--hs) * min(2.5svh, 1rem)) auto; font-size: calc(var(--hs) * clamp(1rem, min(2.3vw, 2.8svh), 1.6rem)); line-height: 1.4; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s3); }
.hero-actions .button { min-height: max(44px, calc(var(--hs) * 2.8rem)); padding-inline: calc(var(--hs) * 1.25rem); }
.hero-art { position: relative; flex: 0 1 auto; width: min(calc(var(--hs) * 30svh), calc(var(--hs) * 24rem), 74vw); aspect-ratio: 1.5; max-height: calc(var(--hs) * 32svh); filter: drop-shadow(0 1rem 2rem color-mix(in srgb, var(--background) 80%, transparent)); }
.pattern-disc { position: absolute; inset: 0 13%; overflow: clip; border-radius: 45% 55% 49% 51%; transform: rotate(-9deg); background: radial-gradient(circle at 32% 24%, color-mix(in srgb, var(--text) 55%, var(--accent)), transparent 17%), conic-gradient(from 70deg, var(--secondary), var(--surface), var(--accent), var(--primary), var(--surface), var(--secondary)); border: 1px solid color-mix(in srgb, var(--text) 50%, transparent); box-shadow: inset -.7rem -.6rem 2rem color-mix(in srgb, var(--background) 60%, transparent), inset .5rem .6rem 1.6rem color-mix(in srgb, var(--text) 25%, transparent), var(--shadow-three); }
.pattern-rings { position: absolute; inset: 8%; border-radius: 50%; background: repeating-radial-gradient(ellipse at center, transparent 0 .65rem, color-mix(in srgb, var(--background) 60%, transparent) .68rem .87rem, transparent .9rem 1.25rem); transform: rotate(18deg); }
.pattern-line { position: absolute; inset: 38% -5%; height: 19%; background: linear-gradient(90deg, var(--primary), var(--text), var(--secondary)); transform: rotate(-22deg); border-block: .2rem dashed color-mix(in srgb, var(--background) 45%, transparent); border-radius: 50%; box-shadow: var(--shadow-two); }
.pattern-needle { position: absolute; height: 85%; width: 2%; left: 56%; top: 3%; border-radius: 60%; background: linear-gradient(90deg, var(--text), var(--accent), var(--background)); transform: rotate(28deg); }
.bubble { position: absolute; border-radius: 50%; border: 1px solid var(--secondary); background: color-mix(in srgb, var(--accent) 28%, transparent); }
.bubble-a { width: 12%; aspect-ratio: 1; left: 5%; top: 10%; }
.bubble-b { width: 6%; aspect-ratio: 1; right: 9%; bottom: 7%; }
/* About */
.about { background: var(--background); }
.about-intro { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: var(--s7); }
.about h2 { max-width: 12ch; }
.about h2 em { font-style: normal; color: var(--primary); }
.about-intro > p { font-size: 1.18rem; max-width: 40rem; }
.fact-strip { display: grid; grid-template-columns: .7fr 1.3fr .9fr 1.1fr; margin-top: var(--s7); border-top: var(--line); border-bottom: var(--line); }
.fact-strip div { padding: var(--s5); border-right: var(--line); display: flex; flex-direction: column; gap: var(--s2); }
.fact-strip div:last-child { border: 0; }
.fact-strip b { font: 800 2.6rem/1 var(--heading-font); color: var(--secondary); font-variant-numeric: tabular-nums; }
/* Features */
.features { background: color-mix(in srgb, var(--background) 80%, var(--surface)); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s5); align-items: end; margin-bottom: var(--s7); }
.section-heading .eyebrow { grid-column: 1 / -1; margin: 0; }
.section-heading h2 { margin: 0; }
.section-heading > p:last-child { font-size: 1.1rem; }
.feature-list { display: grid; }
.feature-row { display: grid; grid-template-columns: 5rem minmax(0,1fr) auto; align-items: center; gap: var(--s5); padding: var(--s5) var(--s3); border-bottom: 1px dashed color-mix(in srgb, var(--text) 30%, transparent); background: color-mix(in srgb, var(--text) 5%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .2s var(--ease), background .2s var(--ease); }
.feature-row:first-child { border-top: var(--line); }
.feature-row:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--text) 9%, transparent); }
.feature-icon { width: 4.5rem; height: 4.5rem; border-radius: 40% 20% 40% 20%; background: var(--primary); display: grid; place-items: center; color: var(--button-text); box-shadow: inset 0 0 1rem color-mix(in srgb, var(--text) 50%, transparent); }
.feature-icon svg { width: 2rem; }
.feature-row h3 { margin-bottom: var(--s2); }
.feature-row p { margin: 0; max-width: 45rem; }
.feature-arrow { color: var(--accent); font-size: 2rem; }
/* Process */
.process { background: var(--surface); }
.steps { list-style: none; padding: 0; margin: var(--s7) 0 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--s5); }
.steps li { padding: var(--s5) 0; border-top: var(--line); }
.step-number { font: 400 5rem/1 var(--heading-font); color: var(--primary); -webkit-text-stroke: 1px var(--text); font-variant-numeric: tabular-nums; }
.steps h3 { margin: var(--s5) 0 var(--s2); }
/* Trust */
.trust { background: var(--background); }
.trust-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: var(--s8); }
.shield-art { min-height: 26rem; display: grid; place-items: center; border-radius: var(--r-large); background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent), transparent 65%); }
.shield-symbol { width: min(80%,23rem); aspect-ratio: .95; clip-path: polygon(50% 0, 100% 16%, 92% 66%, 50% 100%, 8% 66%, 0 16%); display: grid; place-items: center; background: repeating-radial-gradient(circle, var(--secondary) 0 1rem, var(--surface) 1rem 2rem); border: .5rem solid var(--accent); color: var(--button-text); font-size: 9rem; text-shadow: 0 0 2rem var(--text); filter: drop-shadow(0 1rem 1.5rem color-mix(in srgb, var(--background) 40%, transparent)); }
.check-list { list-style: none; padding: 0; margin: var(--s6) 0; }
.check-list li { padding: var(--s3) 0; border-bottom: var(--line); }
.check-list li::before { content: '✓'; color: var(--accent); margin-right: var(--s3); font-weight: 800; }
/* CTA */
.cta { background: var(--surface); }
.cta-inner { display: flex; align-items: center; gap: var(--s8); }
.cta-inner > div:last-child { max-width: 51rem; }
.stamp { width: 15rem; aspect-ratio: 1; border: .6rem double var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: var(--s2); flex-shrink: 0; font: 800 2.3rem var(--heading-font); transform: rotate(-14deg); box-shadow: var(--shadow-two); }
.stamp span { color: var(--accent); }
/* Privacy page */
.privacy-main { padding: var(--s7) 0 var(--s9); background: radial-gradient(circle at top right, color-mix(in srgb, var(--secondary) 19%, var(--background)), var(--background) 55%); }
.policy-shell { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.privacy-title { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); border-bottom: 2px solid var(--accent); padding-bottom: var(--s4); margin-bottom: var(--s4); }
.privacy-title h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.5rem); }
.privacy-title span { font-weight: 600; color: var(--primary); padding-bottom: var(--s1); }
.policy-stack { display: grid; gap: var(--s3); }
.policy-panel { padding: var(--s5); border: var(--line); border-radius: var(--r-mid); background: color-mix(in srgb, var(--surface) 45%, transparent); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); box-shadow: var(--shadow-one), inset 0 1px 0 color-mix(in srgb, var(--text) 13%, transparent); }
.policy-panel h2 { font-size: 1.55rem; letter-spacing: .01em; color: var(--primary); margin-bottom: var(--s3); }
.policy-line { margin: 0 0 var(--s2); overflow-wrap: anywhere; }
.policy-line:last-child { margin-bottom: 0; }
/* Footer */
.site-footer { background: color-mix(in srgb, var(--background) 86%, var(--surface)); border-top: var(--line); padding: var(--s8) 0 var(--s6); overflow: clip; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.footer-brand img { background: var(--text); border-radius: var(--r-small); padding: .1rem; }
.footer-top > a:last-child { font-weight: 600; text-underline-offset: .3rem; }
.footer-wordmark { font: 800 clamp(5rem, 20vw, 19rem)/.9 var(--heading-font); letter-spacing: -.07em; color: color-mix(in srgb, var(--primary) 34%, transparent); margin-top: var(--s7); white-space: nowrap; }
.footer-small { font-size: .9rem; margin: var(--s4) 0 0; }
/* Utilities */
.reveal { opacity: 1; }
.js-ready .reveal:not(.is-shown) { opacity: 0; transform: translateY(1rem); }
.js-ready .reveal { transition: opacity .5s var(--ease), transform .5s var(--ease); }
/* Responsive */
@media (min-width: 768px) { .shell { width: min(100% - 4rem, 1360px); } }
@media (min-width: 1280px) { .shell { width: min(100% - 6rem, 1360px); } }
@media (max-width: 767px) {
  .about-intro, .section-heading, .trust-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .fact-strip { grid-template-columns: 1fr 1fr; }
  .fact-strip div:nth-child(2) { border-right: 0; }
  .fact-strip div:nth-child(-n+2) { border-bottom: var(--line); }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: var(--s6); }
  .stamp { width: 9rem; font-size: 1.5rem; }
  .shield-art { min-height: 16rem; }
  .shield-symbol { width: 12rem; font-size: 6rem; }
  .feature-row { grid-template-columns: 3.5rem minmax(0,1fr); gap: var(--s3); }
  .feature-icon { width: 3.3rem; height: 3.3rem; }
  .feature-icon svg { width: 1.7rem; }
  .feature-arrow { display: none; }
}
@media (max-width: 480px) {
  .site-header { --header-height: 4rem; }
  .brand { font-size: 1.35rem; }
  .brand img { width: 2rem; height: 2rem; }
  .nav-button { font-size: .85rem; padding: .6rem .7rem; min-height: 2.75rem; }
  .hero-actions { gap: var(--s2); }
  .hero-actions .button { font-size: .85rem; padding-inline: .7rem; }
  .steps { grid-template-columns: 1fr; gap: var(--s3); }
  .privacy-title h1 { font-size: 2.5rem; }
  .policy-panel { padding: var(--s4); }
  .footer-wordmark { font-size: 18vw; }
}
@media (max-height: 600px) {
  .hero-content { flex-direction: row; justify-content: center; text-align: left; gap: var(--s5); }
  .hero-copy { flex: 1 1 60%; }
  .hero-copy p { margin-left: 0; }
  .hero-art { flex: 0 1 30%; max-height: 36svh; width: min(30vw,36svh); }
  .hero-actions { justify-content: flex-start; }
}
@media (max-height: 420px) { .hero-art { display: none; } .hero-content { text-align: center; } .hero-copy p { margin-inline: auto; } .hero-actions { justify-content: center; } }
.hero--compact .hero-art, .hero--compact .button-outline { display: none; }
/* Motion and reduced motion */
@keyframes drift-one { to { transform: translateX(-8%) rotate(-14deg); } }
@keyframes drift-two { to { transform: translateX(8%) rotate(13deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms; animation-iteration-count: 1; transition-duration: .01ms; scroll-behavior: auto; } .js-ready .reveal:not(.is-shown) { opacity: 1; transform: none; } }
/* Print */
@media print { .site-header, .site-footer, .back-top, .scroll-progress { display: none; } .policy-panel { break-inside: avoid; box-shadow: none; border: 1px solid currentColor; color: black; background: white; } body { background: white; color: black; } }
