:root {
  --cream: #FBF6EE;
  --cream-2: #F3EADB;
  --green: #2F5D46;
  --green-dark: #234635;
  --ink: #2A2622;
  --muted: #6B625A;
  --terra: #C8643B;
  --terra-dark: #A94F2B;
  --peach: #F3C9A8;
  --line: #E4D8C6;
  --white: #FFFDF9;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(42, 38, 34, .08);
  --serif: "Literata", Georgia, serif; /* Fraunces drew the macron of ū/Ū over the next letter */
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
/* On the dark green areas the terra outline is barely visible (1.8:1); peach stands out (5:1+). */
.section-green .contact-copy :focus-visible, .site-footer :focus-visible { outline-color: var(--peach); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .85em 1.4em;
  border-radius: 999px;
  border: 2px solid var(--green);
  background: var(--green);
  color: #fff;
  font: 800 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
/* White text needs the darker terra to pass WCAG AA contrast (5.5:1; the lighter terra is only 3.9:1). */
.btn-terra { background: var(--terra-dark); border-color: var(--terra-dark); }
.btn-terra:hover { background: #8E4123; border-color: #8E4123; }
.btn-small { padding: .55em 1.1em; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; }
.logo-mark rect { fill: var(--green); }
.logo-mark path { fill: var(--peach); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav a:not(.btn):hover { color: var(--terra); }
.nav .btn { color: #fff; }
.nav a.lang { font-size: .85rem; letter-spacing: .04em; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 11px; }
.nav a.lang:hover { border-color: var(--terra); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.header-cta { display: none; } /* phones only: keeps the main action visible while the menu is closed */
.menu-toggle .bar { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hero */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; background: var(--cream-2); color: var(--terra-dark); font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: .3em; }
h1 em { font-style: normal; color: var(--terra); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; font-weight: 700; color: var(--green); }
.hero-points li::before { content: "✓ "; color: var(--terra); }

.hero-visual { position: relative; padding: 20px 10px 40px; }
.mock { background: var(--white); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(47, 93, 70, .18); overflow: hidden; transform: rotate(1.5deg); border: 1px solid var(--line); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--cream-2); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar i { margin-left: 10px; font-style: normal; font-size: .75rem; color: var(--muted); background: var(--white); padding: 2px 10px; border-radius: 999px; }
/* Live previews: a demo page at desktop size inside an iframe, scaled to the box width by main.js */
.mock-screen, .work-thumb { position: relative; overflow: hidden; background: var(--cream-2); }
.mock-screen { aspect-ratio: 1280 / 880; }
.mock-screen iframe, .work-thumb iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.toast { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: .85rem; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; animation: float 5s ease-in-out infinite; }
.toast svg { width: 18px; height: 18px; flex: none; color: var(--green); }
.toast-2 svg { color: #E2A43B; }
.toast-1 { left: -18px; top: 46%; }
.toast-2 { right: -6px; bottom: 6px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--cream-2); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin-bottom: 40px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--peach); color: var(--terra-dark); font: 700 1.3rem var(--serif); margin-bottom: 16px; }
.steps p { color: var(--muted); margin: 0; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.plan h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin-bottom: .2em; }
.plan-for { color: var(--muted); font-size: .95rem; }
.price { font-size: .95rem; color: var(--muted); margin: 8px 0 18px; }
.price span { font: 700 2.4rem var(--serif); color: var(--ink); margin-right: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed var(--line); }
.plan li:last-child { border-bottom: 0; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.plan-featured { border: 2px solid var(--green); box-shadow: 0 18px 40px rgba(47, 93, 70, .15); transform: translateY(-8px); }
.badge { position: absolute; top: -14px; left: 28px; background: var(--terra-dark); color: #fff; font-size: .8rem; font-weight: 800; padding: 4px 14px; border-radius: 999px; margin: 0; }
.pricing-note { text-align: center; margin: 36px 0 0; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { padding: 4px; }
.feature-icon { width: 56px; height: 56px; display: grid; place-items: center; color: var(--green); background: var(--cream-2); border-radius: 16px; margin-bottom: 16px; }
.feature-icon svg { width: 26px; height: 26px; }
.feature:nth-child(even) .feature-icon { color: var(--terra-dark); background: #F8E3D3; }
.feature p { color: var(--muted); margin: 0; }

/* Work */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.work-card:hover h3 { color: var(--terra); }
.work-card:focus-within { outline: 3px solid var(--terra); outline-offset: 3px; }
.work-card h3, .work-card p { padding: 0 22px; }
.work-card h3 { margin-top: 20px; }
.work-card h3 a { color: inherit; text-decoration: none; }
.work-card h3 a:focus { outline: none; }
.work-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is clickable */
.work-card p { color: var(--muted); padding-bottom: 22px; margin: 0; }
.work-thumb { aspect-ratio: 1280 / 800; border-bottom: 1px solid var(--line); }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 800; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--terra); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Contact */
.section-green { background: var(--green); color: var(--cream); }
.section-green h2 { color: #fff; }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy p { font-size: 1.1rem; opacity: .9; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; font-weight: 700; }
.contact-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--peach); }
.contact-list a { color: var(--peach); overflow-wrap: anywhere; }
.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 93, 70, .18); }
.field input.invalid { border-color: var(--terra); background: #FCEDE6; }
.form .btn { width: 100%; margin-top: 6px; }
.form-note { margin: 4px 0 10px; font-size: .88rem; color: var(--muted); }
.form-note a { color: var(--green); font-weight: 700; }
.form-status { margin: 14px 0 0; font-weight: 700; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--terra-dark); }
.hp { position: absolute; left: -9999px; }

/* Simple pages: privacy policy, 404 */
body.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { padding: 64px 0 88px; flex: 1; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin: 2em 0 .5em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal .updated { color: var(--muted); }
.legal .box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }

/* Footer */
.site-footer { background: var(--green-dark); color: rgba(251, 246, 238, .8); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner p { margin: 0; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: #fff; }
.small { font-size: .9rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing, .work, .steps { grid-template-columns: 1fr; }
  .pricing { max-width: 480px; margin-inline: auto; }
  .plan-featured { transform: none; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a.lang { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 4px; font-size: 1rem; letter-spacing: 0; }
  .nav a.lang::before { content: "🌐 "; content: "🌐 " / ""; } /* second form: screen readers skip the globe */
  .nav .btn { display: none; } /* the header button below replaces it on phones */
  .header-cta { display: inline-flex; margin-left: auto; margin-right: 2px; padding: .5em 1em; font-size: .9rem; }
  .hero { padding: 40px 0 56px; }
  .section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .toast-1 { left: 0; }
  .toast-2 { right: 0; }
  .form { padding: 24px 20px; }
}
@media (max-width: 420px) {
  .toast { font-size: .75rem; white-space: normal; max-width: 70%; }
}
