/* Milfey website. No cookies, no third-party requests: fonts are served from this domain. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #2b2724;
  --ink-2: #5e574f;
  --muted: #6f645b; /* a shade darker than the app's #7B6F66 so small text passes WCAG AA on paper */
  --line: #e3ded4;
  --line-2: #ddd4c8;
  --paper: #f8f5ef;
  --card: #fcfaf6;
  --bg: #efebe3;
  --coral: #ee7a6b;
  --coral-ink: #a8402f;
  --red: #b33a2b;
  --gold: #efcb84;
  --gold-bg: #faf3e3;
  --gold-ink: #80602b;
  --green: #3c5c4b;
  --green-bg: #dfe7df;
  --leaf: #91ad82;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(43, 39, 36, 0.08);
  --shadow-lg: 0 18px 48px rgba(43, 39, 36, 0.12);
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-ink); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-family: var(--sans); font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
h1 em, h2 em { font-style: italic; color: var(--coral-ink); }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 239, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand span { font-family: var(--serif); font-size: 1.75rem; line-height: 1; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.94rem; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 0.95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { color: #fff; background: #000; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); background: var(--card); }
.nav .btn { padding: 10px 18px; color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-bg); color: var(--gold-ink); border: 1px solid #f3e0b9;
  padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; margin-bottom: 20px;
}
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }
.hero-art { position: relative; }
.hero-art .halo {
  position: absolute; inset: 6% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(239, 203, 132, 0.45), rgba(238, 122, 107, 0.12) 60%, transparent);
  filter: blur(6px);
}
.hero-art img.logo { position: relative; width: 100%; max-width: 560px; margin: 0 auto; animation: float 7s ease-in-out infinite; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
}

/* the winged sprites, decorative and still on phones */
.sprite { position: absolute; pointer-events: none; user-select: none; z-index: 0; animation: float 8s ease-in-out infinite; }
.sprite.s1 { width: 92px; left: 2%; top: 8%; transform: scaleX(-1) rotate(-8deg); animation-delay: -2s; }
.sprite.s2 { width: 78px; right: 3%; top: 4%; transform: rotate(10deg); animation-delay: -4s; }
.sprite.s3 { width: 84px; left: 44%; bottom: 2%; transform: rotate(-6deg); animation-delay: -1s; }
.sprite.s4 { width: 70px; right: 6%; bottom: 10%; transform: rotate(12deg); animation-delay: -5s; }
@media (max-width: 860px) { .sprite.s3, .sprite.s4 { display: none; } .sprite.s1 { width: 64px; } .sprite.s2 { width: 56px; } }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.kicker { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: 12px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.section.alt .card { background: var(--paper); }
.card p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 16px; font-size: 1.3rem;
}
.icon svg { width: 22px; height: 22px; }
.i-coral { background: #f6e6df; color: var(--red); }
.i-gold { background: var(--gold-bg); color: var(--gold-ink); }
.i-green { background: var(--green-bg); color: var(--green); }
.i-sky { background: #e2eaf3; color: #3a5f8a; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800;
}
.step p { color: var(--ink-2); }

/* trust list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.checks li strong { color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233C5C4B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-art { position: relative; display: grid; place-items: center; min-height: 260px; }
.split-art img { width: min(320px, 70%); }

/* pricing */
.pricing {
  position: relative; overflow: hidden;
  background: var(--ink); color: #f3eee6; border-radius: 24px;
  padding: clamp(32px, 6vw, 64px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start;
}
.pricing h2 { color: #fff; }
.pricing h2 em { color: var(--gold); }
.pricing p { color: #d9d1c6; }
.pricing .price { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: #fff; line-height: 1; margin: 6px 0 14px; }
.pricing .checks li { color: #e4ddd3; }
.pricing .checks li strong { color: #fff; }
.pricing .checks li::before { background-color: rgba(145, 173, 130, 0.25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9E0BC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.pricing .btn-primary { background: var(--gold); color: var(--ink); }
.pricing .btn-primary:hover { background: #f5d897; color: var(--ink); }
.pricing .fine { font-size: 0.85rem; color: #b9b0a5; margin-top: 18px; }
.pricing .sprite { opacity: 0.95; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%;
  font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: rotate 0.2s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--ink-2); padding-right: 40px; }

/* contact */
.contact { text-align: center; }
.contact .wrap { max-width: 760px; }
.contact img.mark { width: 150px; margin: 0 auto 18px; }
.contact p { color: var(--ink-2); font-size: 1.08rem; }
.mail { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink); text-decoration-color: var(--coral); text-decoration-thickness: 2px; word-break: break-word; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 48px 0 32px; font-size: 0.92rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }

/* ---------- legal pages ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.legal h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-top: 1.8em; }
.legal h3 { margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink-2); }
.legal li { margin-bottom: 0.4em; }
.legal .meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 2em; }
.legal .toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 2em; }
.legal .toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .legal .toc ol { columns: 1; } }
.legal .toc a { text-decoration: none; }
.legal .callout { background: var(--gold-bg); border: 1px solid #f3e0b9; border-radius: var(--radius-sm); padding: 14px 18px; color: var(--gold-ink); margin: 1.2em 0; }
.legal .callout p { color: var(--gold-ink); margin: 0; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; color: var(--ink); background: var(--bg); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td { color: var(--ink-2); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 1em 0 2em; }
dl.facts dt { font-weight: 700; color: var(--ink); }
dl.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { dl.facts { grid-template-columns: 1fr; gap: 2px; } dl.facts dd { margin-bottom: 10px; } }

/* a value still to be filled in */
.todo { background: #fff3c4; border-bottom: 2px dashed #d9a400; color: #6b5200; padding: 0 3px; border-radius: 3px; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound img { width: 220px; margin: 0 auto 12px; }

/* placements that would otherwise be inline styles (the CSP allows no inline style) */
.kicker-gold { color: var(--gold); }
.sprite.s4-privacy { right: 10%; bottom: 6%; display: block; }
.sprite.s2-pricing { top: auto; bottom: -6px; right: 2%; width: 84px; display: block; }
.small-note { font-size: 0.9rem; color: var(--muted); }
.footer-blurb { margin-top: 12px; max-width: 30em; }

/* business details under the contact address */
.contact dl.business { max-width: 560px; margin: 28px auto; text-align: left; }
