/*
 * AmuaCare website. The look is the AmuaCare Yakap leaflet: a pale sage page, deep forest
 * green, the logo's green and blue, white rounded cards with thin line icons, a serif for
 * headlines, and large faint flowers in the corners. Light only, like the leaflet.
 */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #f4f7f2;      /* the leaflet's page */
  --ground-2: #eaf0e6;    /* a band a shade deeper */
  --card: #ffffff;
  --forest: #2e4a2b;      /* headlines and the contact panel */
  --forest-2: #253d23;
  --leaf: #2a8a27;        /* the logo's green */
  --leaf-soft: #4b8b37;   /* step numbers and rules */
  --blue: #3a5a99;        /* the spaced capital labels */
  --amua: #1e5c9c;        /* wordmark */
  --care: #246d22;        /* wordmark */
  --ink: #1d261c;
  --muted: #566252;
  --line: #dde5d8;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
}
/* The corner flowers hang past the edges; clip them without making the page scroll sideways. */
html, body { overflow-x: clip; }
img, svg { display: block; }
a { color: var(--care); }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ---------- type ---------- */
h1, h2, .aim p { font-family: var(--serif); color: var(--forest); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.05; margin: 0.35em 0 0.4em; }
h1 em { font-style: italic; font-weight: 500; color: var(--leaf-soft); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.12; margin: 0.25em 0 0.5em; }
h3, h4 { font-size: 1.08rem; line-height: 1.3; margin: 0.7em 0 0.3em; color: var(--ink); }
p { margin: 0 0 0.9em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.eyebrow {
  font: 700 0.82rem/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); margin: 0;
}

/* ---------- icons and buttons ---------- */
.ic, .ic-lg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic { width: 18px; height: 18px; }
.ic-lg { width: 26px; height: 26px; color: var(--blue); opacity: 0.85; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 0.98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--forest); border-color: #b9c9b2; }
.btn-ghost:hover { background: #fff; color: var(--forest); border-color: var(--forest); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: #e9f1e4; color: var(--forest); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgb(244 247 242 / 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-tile { width: 38px; height: 38px; border-radius: 10px; background: var(--leaf); display: grid; place-items: center; }
.brand-flower { width: 30px; height: 30px; color: #fff; }
.brand-name { font: 800 1.35rem/1 var(--sans); letter-spacing: -0.02em; }
.amua { color: var(--amua); }
.care { color: var(--care); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav a:hover { color: var(--care); }
.signin { padding: 9px 16px; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; align-content: center; gap: 5px; padding: 0 11px; border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { height: 2px; background: var(--forest); border-radius: 2px; }
.menu nav { position: absolute; right: 0; top: 52px; width: min(280px, 100vw - 32px); background: #fff; border-radius: 14px; box-shadow: 0 18px 40px -16px rgb(30 50 30 / 0.35); padding: 8px; display: grid; }
.menu nav a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu nav a:hover { background: var(--ground); }

/* ---------- corner flowers ---------- */
.hero, .products, .contact { position: relative; isolation: isolate; }
.hero::before, .products::after, .contact::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: url("img/petals.svg") center / contain no-repeat;
}
.hero::before { width: 520px; height: 520px; right: -150px; top: -140px; transform: rotate(14deg); }
.products::after { width: 420px; height: 420px; left: -190px; bottom: -120px; transform: rotate(-20deg); }
.contact::before { width: 360px; height: 360px; right: -120px; top: -90px; transform: rotate(30deg); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 56px; align-items: center; }
.hero-card {
  background: var(--card); border-radius: 24px; padding: 30px 30px 26px;
  box-shadow: 0 30px 60px -36px rgb(30 60 30 / 0.45);
}
.hero-card p { color: var(--muted); }
.hero-card .certified { margin: 0 0 10px; }
.lockup { display: flex; align-items: center; gap: 14px; margin: 18px 0 14px; }
.tile { width: 58px; height: 58px; border-radius: 15px; background: var(--leaf); display: grid; place-items: center; flex: none; }
.tile svg { width: 46px; height: 46px; color: #fff; }
.lockup-name { font: 800 1.7rem/1.05 var(--sans); letter-spacing: -0.02em; display: grid; grid-template-columns: auto auto; justify-content: start; }
.lockup-name .product { grid-column: 1 / -1; color: #5c645a; font-weight: 700; font-size: 0.72em; letter-spacing: 0.02em; }
.lockup-lg .tile { width: 72px; height: 72px; border-radius: 18px; }
.lockup-lg .tile svg { width: 58px; height: 58px; }
.lockup-lg .lockup-name { font-size: 2.1rem; }
/* A statement, not a control: plain text with its shield, no pill - only buttons are rounded
   and filled (Brian, 2026-11-15). */
.certified { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--care) !important; font-size: 0.95rem; }
.certified.big { font-size: 1.05rem; }

.band { background: var(--ground-2); }
.grid { display: grid; gap: 20px; margin-top: 28px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border-radius: var(--radius); padding: 24px 24px 18px; }
.card p, .point p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.card.flat { background: var(--ground); }
.point { padding: 4px 4px 0; }
.point p { margin-top: 12px; }

.product-card { background: var(--card); border-radius: 28px; padding: clamp(24px, 5vw, 56px); margin-top: 18px; box-shadow: 0 30px 70px -48px rgb(30 60 30 / 0.5); }
.product-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.partner-marks { display: flex; align-items: center; gap: 22px; }
.partner-marks img { width: auto; }
.product-card h2 { margin-top: 0.9em; }
.sub { font: 700 0.82rem/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); margin-top: 2.4em; }

.steps-band h2 { margin-bottom: 1.2em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; background: var(--leaf-soft); opacity: 0.55; }
.steps li { position: relative; }
.step-n {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--leaf-soft); color: #fff; font-weight: 700; font-size: 1.05rem; box-shadow: 0 0 0 6px var(--ground);
}
.steps .ic-lg { margin-top: 18px; }
.steps p { color: var(--muted); font-size: 0.98rem; margin: 0; }

.aim { padding: 64px 0; background: var(--ground-2); }
.aim-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 72px; }
.aim p { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; text-align: center; }
.aim strong { font-weight: 700; display: block; }
.aim em { font-weight: 400; color: var(--ink); }

.faq details { background: var(--card); border-radius: 14px; margin-top: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--leaf-soft); border-bottom: 2px solid var(--leaf-soft); transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

.contact { padding-top: 40px; }
.contact-panel {
  background: var(--forest); color: #e6efe2; border-radius: 28px; padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px;
}
.contact-panel h2 { color: #fff; margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; color: #fff; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 600; color: #dfe9da; }
.contact-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 2px solid transparent;
  border-radius: 12px; padding: 11px 13px; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #9cc48a; }
.contact-form [aria-invalid="true"] { border-color: #f2a48a; }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 0.88rem; color: #b8c9b2; margin: 0; }
.form-note a { color: #fff; }
.form-status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #c9ecb9; }
.form-status.err { color: #ffc9b8; }
.turnstile-box { min-height: 73px; }   /* the spam check's height, held so nothing moves when it loads */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.foot { padding: 36px 0 48px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.foot nav a:hover { color: var(--forest); }
.legal { margin: 0 0 0 auto; color: var(--muted); font-size: 0.88rem; }

/* ---------- trust marks, the eKonsulta move, support, about ---------- */
/* A column: in a row the last mark wraps alone beside the product card and on phones. */
.trust { list-style: none; padding: 0; margin: 2em 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ic { color: var(--care); }

.move { background: var(--ground-2); }
.move .lede a { font-weight: 600; }
.move-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 28px; margin-top: 30px; }
.move-grid > div { background: var(--card); border-radius: 24px; padding: clamp(22px, 3.5vw, 36px); }
.move-grid h3 { font-size: 1.2rem; margin-top: 0; }
.move-steps ol { padding-left: 1.3em; margin: 0 0 1.6em; display: grid; gap: 12px; color: var(--muted); }
.move-steps li::marker { color: var(--leaf-soft); font-weight: 700; }
.move-steps strong, .easier strong { color: var(--ink); }
.easier { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.easier li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; color: var(--muted); }

.more { margin: 26px 0 0; }
.refs { font-size: 0.86rem; color: var(--muted); margin-top: 22px; }
.about { padding-bottom: 40px; }
.about .lede { margin-inline: auto; }
.muted-on-dark { color: #b8c9b2; font-size: 0.92rem; }
.contact-form select {
  font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 2px solid transparent;
  border-radius: 12px; padding: 11px 13px; width: 100%;
}
.contact-form select:focus { outline: none; border-color: #9cc48a; }

/* ---------- the security page ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.sec-grid .card h2 { font-family: var(--sans); font-size: 1.1rem; color: var(--ink); margin: 0.6em 0 0.3em; font-weight: 700; }

/* ---------- the privacy page ---------- */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.doc h2 { font-size: 1.45rem; margin-top: 1.6em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 0.3em 0; }
.doc .to-confirm { background: #fff3cd; border-radius: 6px; padding: 1px 6px; }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .hero-grid, .contact-panel, .move-grid { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
}
/* Tablets: the hero is one column, wide enough for the marks in one row. */
@media (min-width: 761px) and (max-width: 960px) {
  .trust { display: flex; gap: 10px 26px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .nav, .signin { display: none; }
  .menu { display: block; }
  .grid.three, .grid.four, .sec-grid { grid-template-columns: 1fr; }
  .contact-form .two { grid-template-columns: 1fr; }
  .legal { margin-left: 0; }
  .hero::before { width: 360px; height: 360px; right: -170px; top: -120px; }
  .partner-marks img { height: 34px; }
}
@media (max-width: 480px) {
  .lockup-lg .lockup-name { font-size: 1.7rem; }
}

/* ---------- phones: laid out for the phone, not the desktop page squeezed down ---------- */
@media (max-width: 760px) {
  section { padding: 52px 0; }
  .eyebrow, .sub { letter-spacing: 0.14em; text-wrap: balance; }
  /* One reading line down the left: a centred heading between left-aligned blocks zig-zags. */
  section .center { text-align: left; }
  .about .lede { margin-inline: 0; }
  /* The flower stays in the corner instead of sitting on the headline. */
  .hero::before { width: 280px; height: 280px; right: -150px; top: -70px; opacity: 0.55; }

  /* Cards: the icon beside the title, so a card is a few lines, not a screenful. */
  .grid { gap: 12px; margin-top: 22px; }
  .card { display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; align-items: start; padding: 18px 18px 16px; border-radius: 16px; }
  .card > .ic-lg { grid-row: span 2; margin-top: 1px; }
  .card > h2, .card > h3 { margin: 0 0 4px; }
  .card > p { grid-column: 2; }
  .point { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 0; }
  .point p { margin: 0; }

  /* The four steps: a numbered line down the left. */
  .steps { grid-template-columns: 1fr; row-gap: 22px; }
  .steps::before { display: block; left: 17px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; }
  .steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; }
  .step-n { grid-row: span 2; width: 36px; height: 36px; font-size: 0.95rem; }
  .steps .ic-lg { display: none; }
  .steps h3 { margin: 6px 0 2px; }
  .steps p { grid-column: 2; }

  .product-card { padding: 24px 18px; border-radius: 22px; }
  .card.flat { padding: 16px; }
  .partner-marks { flex-wrap: wrap; gap: 12px 18px; }
  .partner-marks img { height: 30px; max-width: 100%; }
  .move-grid { gap: 14px; margin-top: 22px; }
  .move-grid > div { border-radius: 20px; }

  /* The contact panel runs edge to edge, so the form has the phone's full width. */
  .contact { padding: 24px 0 0; }
  .contact-panel { margin-inline: -16px; border-radius: 0; padding: 40px 20px 44px; gap: 32px; }
  .contact::before { display: none; }
  .foot { padding: 28px 0 36px; }
}
/* The spam check is at least 300px wide. */
@media (max-width: 359px) {
  .contact-panel { padding-inline: 10px; }
}
