/* SimplyFax.it marketing site. Static CSS, no build step. Design: Plainspoken (white, ink, saffron). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --slate: #5b6773;
  --saffron: #f5a300;
  --wash: #f4f5f7;
  --rule: #dfe3e8;
  --err: #a32121;
  --ok-bg: #e6f4ea;
  --ok-ink: #14532d;
  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --rt-blue: #3b82f6;
  --rt-orange: #f97316;
  --mono: "Courier New", Courier, monospace;
  --header-h: 67px;
  --gutter: 20px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: var(--saffron); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: 1.2rem; color: #333; }
.muted { color: var(--slate); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand em { font-style: normal; background: var(--saffron); padding: 0 4px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a.link { text-decoration: none; font-size: .98rem; font-weight: 500; }
.nav a.link:hover { text-decoration: underline; text-decoration-color: var(--saffron); }
@media (max-width: 800px) { .nav a.link { display: none; } }

/* Buttons */
.btn { display: inline-block; font: 700 1rem/1 var(--body); padding: 15px 24px; border-radius: 6px; text-decoration: none; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.btn:hover { background: #000; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--wash); color: var(--ink); }
.btn.small { padding: 10px 16px; font-size: .95rem; }
.btn.on-saffron { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero h1 { max-width: none; }
.hero h1 s, .lp-hero h1 s { text-decoration-thickness: .08em; text-decoration-color: var(--saffron); color: var(--slate); font-weight: 800; }
.hero h1 .rest, .lp-hero h1 .rest { display: block; margin-top: .12em; }
/* Rotating strike-out, plays once. main.js adds .anim, then .done. Without JS or with reduced motion the static strikes above show. */
.strikes.anim .words { display: block; width: max-content; max-width: 100%; max-height: 1.15em; overflow: hidden; transition: max-height .6s ease; }
.strikes.anim .track { display: block; transition: transform .5s ease; }
.strikes.anim s { display: block; width: max-content; height: 1.15em; line-height: 1.15; white-space: nowrap; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--saffron), var(--saffron)) no-repeat 0 58% / 0 .08em; transition: background-size .45s ease, color .45s ease; }
.strikes.anim s.struck { color: var(--slate); background-size: 100% .08em; }
.hero h1 .rest em, .lp-hero h1 .rest em { font-style: normal; padding: 0 .08em; background: linear-gradient(var(--saffron), var(--saffron)) no-repeat 0 0 / 100% 100%; }
.strikes.anim .rest em { background-size: 0 100%; transition: background-size .5s ease .7s; }
.strikes.anim.done .rest em { background-size: 100% 100%; }
.strikes.anim .rest { opacity: 0; max-height: 0; margin-top: 0; overflow: hidden; transition: opacity .6s ease, max-height .6s ease, margin-top .6s ease; }
/* Finished: the three phrases share a line, wrapping only when the screen is too narrow. */
.strikes.anim.done .words { width: auto; max-height: 6em; }
.strikes.anim.done .track { display: flex; flex-wrap: wrap; column-gap: .35em; transform: none !important; }
.strikes.anim.done .rest { opacity: 1; max-height: 6em; margin-top: .12em; }
.hero .lede { max-width: 52ch; }
.hero .hero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.hero .hero-sub .lede { margin: 0; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 700px) { .hero { padding: 40px 0 40px; } }

/* Sections */
.section { padding: 64px 0; scroll-margin-top: var(--header-h); } /* menu links stop where the section background starts, below the sticky header */
.section.wash { background: var(--wash); }
.section.saffron { background: var(--saffron); }
.section-head { margin-bottom: 32px; }
@media (max-width: 600px) { .section { padding: 44px 0; } }

/* Benefits */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 800px) { .cols3 { grid-template-columns: 1fr; gap: 24px; } }
.cols3 > div { border-top: 3px solid var(--ink); padding-top: 14px; }
.cols3 h3 { margin-bottom: .3em; }
.cols3 p { margin: 0; color: #333; }

/* Hosting and security */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr; } }
.fact { background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: 22px; }
.fact h3 { margin-bottom: .35em; }
.fact p { margin: 0; color: #333; font-size: 1rem; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; }
.plan.featured { box-shadow: 0 8px 0 var(--saffron); }
.plan .tag { font-size: .88rem; font-weight: 700; margin-bottom: 6px; min-height: 1.4em; }
.plan h3 { margin-bottom: .2em; font-size: 1.4rem; }
.plan .blurb { color: var(--slate); font-size: .98rem; }
.plan .price { font-family: var(--display); font-size: 1.8rem; font-weight: 800; margin: 6px 0 2px; letter-spacing: -0.02em; }
.plan .price small { font-family: var(--body); font-size: .9rem; font-weight: 400; color: var(--slate); letter-spacing: 0; }
.plan .pages { font-size: .95rem; margin-bottom: 18px; }
.plan .btn { margin-top: auto; text-align: center; }
.included { margin-top: 32px; padding: 24px; border: 2px dashed var(--slate); border-radius: 8px; }
.included h3 { font-size: 1.15rem; }
.included ul { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 40px; }
.included li { margin-bottom: .4em; break-inside: avoid; }
@media (max-width: 760px) { .included ul { columns: 1; } }
.how-priced { margin-top: 20px; color: #333; font-size: .98rem; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); padding: 16px 0; max-width: 780px; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -3px; font-size: 1.6rem; font-weight: 500; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: #333; }

/* Quote form */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .quote { grid-template-columns: 1fr; gap: 28px; } }
form.card { background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 5px; }
.field .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #8a949f; border-radius: 6px; padding: 11px 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--saffron); border-color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .88rem; color: var(--slate); margin: 4px 0 16px; }
.status { margin-top: 14px; padding: 12px 14px; border-radius: 6px; font-size: .96rem; display: none; }
.status.show { display: block; }
.status.ok { background: var(--ok-bg); color: var(--ok-ink); }
.status.err { background: #fbe9e9; color: var(--err); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 36px 0 48px; font-size: .95rem; color: var(--slate); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--slate); }
.site-footer .linklike { font: inherit; color: var(--slate); background: none; border: 0; padding: 0; margin-left: 16px; text-decoration: underline; cursor: pointer; }
.privacy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper); border-top: 2px solid var(--ink); padding: 16px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; }
.privacy-bar p { margin: 0; max-width: 62ch; font-size: .95rem; }
.privacy-bar .actions { display: flex; gap: 12px; }
.site-footer a.rt-logo { font-family: var(--mono); font-weight: 700; color: var(--rt-blue); white-space: nowrap; text-decoration: none; }
.site-footer a.rt-logo:hover, .site-footer a.rt-logo:focus-visible { text-decoration: underline; }
.rt-logo span { color: var(--rt-orange); }

/* Campaign landing variant */
.lp-hero { padding: 48px 0 56px; }
.lp-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
.lp-points { margin: 20px 0 0; padding-left: 1.2em; }
.lp-points li { margin-bottom: .45em; }
.mini-plans { margin-top: 28px; }
.mini-title { font-size: 1.15rem; margin-bottom: 10px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.mini-card { font: inherit; color: var(--ink); text-align: left; cursor: pointer; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.mini-card.featured { box-shadow: 0 5px 0 var(--saffron); }
.mini-card[aria-pressed="true"] { background: var(--saffron); }
.mini-card .tag { font-size: .8rem; font-weight: 700; min-height: 1.3em; }
.mini-card .name { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.mini-card .pg { font-size: .9rem; }
.mini-note { margin: 10px 0 0; font-size: .92rem; color: var(--slate); }

/* Prose pages (privacy) */
.prose { max-width: 720px; padding: 48px 0 72px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.notice { background: #fff4d6; border: 1px solid #e6c46a; padding: 12px 14px; border-radius: 6px; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
