/* ===========================================================================
   Rounds Web Studio — storefront styles. Plain CSS, no build step.
   =========================================================================== */

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

a { color: inherit; }

/* Ambient warmth behind the whole page — a soft amber glow up top. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%, var(--accent-glow), transparent 60%),
    radial-gradient(900px 500px at 8% 4%, rgba(79, 120, 160, 0.10), transparent 62%);
  z-index: 0;
}

/* --- Skip link --------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 14px 20px;
  font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
}
.skip:focus { left: 0; }

/* --- Layout ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { position: relative; z-index: 1; }
.band { padding-block: clamp(3.5rem, 2rem + 7vw, 7rem); }
.band-line { border-top: 1px solid var(--line-soft); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); }
.section-head h2 { font-size: var(--step-3); margin-top: 0.5rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); margin-top: 1rem; }

/* --- Buttons (every action has words) ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0 1.6em;
  min-height: 54px;               /* comfortable target */
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  min-height: 60px;               /* primary is bigger, per accessibility rule */
  padding: 0 2em;
  font-size: var(--step-1);
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Focus states — thick, obvious, never removed. */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 8px;
}

/* --- Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 16, 23, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
  padding-block: 0.6rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
}
.wordmark .dot { color: var(--accent); }
.wordmark .suffix {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: var(--step-0);
  padding: 0 0.85em;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover { color: var(--ink); background: var(--surface); }
.header-cta { margin-left: 0.5rem; }

/* --- Hero -------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 2rem + 8vw, 7.5rem) clamp(2.5rem, 1.5rem + 5vw, 5rem); }
.hero h1 {
  font-size: var(--step-5);
  max-width: 16ch;
  margin-top: 1.2rem;
}
.hero h1 .hl { color: var(--accent); }
.hero .lede {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 54ch;
  margin-top: 1.5rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  max-width: 62ch;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 600;
}
.trust-row span::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* --- Pillars (differentiators) ----------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
}
.pillar h3 { font-size: var(--step-1); }
.pillar .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9rem;
}
.pillar p { color: var(--muted); margin-top: 0.6rem; font-size: var(--step-0); }

/* --- Process (how it works) -------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  counter-reset: step;
}
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--on-accent);
  background: var(--accent);
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.step h3 { font-size: var(--step-1); }
.step p { color: var(--muted); margin-top: 0.55rem; font-size: var(--step-0); }

/* --- Portfolio --------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
}
.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.work-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.work-card.span-2 { grid-column: span 2; }
.shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.work-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-dim);
  padding: 0.32em 0.75em;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.work-body h3 { font-size: var(--step-2); }
.work-body p { color: var(--muted); margin-top: 0.5rem; font-size: var(--step-0); flex: 1; }
.work-links { margin-top: 1.3rem; display: flex; gap: 0.7rem; flex-wrap: wrap; }
.work-links .btn { min-height: 48px; font-size: var(--step-0); }

/* --- Pricing ----------------------------------------------------------- */
.price-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--accent-dim);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.6em 1em;
  border-radius: 999px;
  margin-bottom: 2rem;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  align-items: start;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier.featured {
  border-color: var(--accent);
  box-shadow: 0 20px 60px -30px var(--accent-glow);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  position: relative;
}
.tier-flag {
  position: absolute;
  top: -13px; left: 1.7rem;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4em 0.9em;
  border-radius: 999px;
}
.tier h3 { font-size: var(--step-2); }
.tier .blurb { color: var(--muted); margin-top: 0.6rem; font-size: var(--step-0); min-height: 3.2em; }
.price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 1.3rem 0 0.2rem;
}
.price .from { color: var(--faint); font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.price .amount { font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); line-height: 1; }
.price .cadence { color: var(--muted); font-size: var(--step--1); }
.turnaround {
  color: var(--accent);
  font-weight: 700;
  font-size: var(--step--1);
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.tier ul { list-style: none; padding: 0; margin: 1.4rem 0 1.2rem; display: grid; gap: 0.7rem; }
.tier ul li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink);
  font-size: var(--step-0);
}
.tier ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 18px; height: 18px;
  background: var(--accent-dim);
  border-radius: 50%;
}
.tier ul li::after {
  content: "";
  position: absolute;
  left: 5px; top: 0.55em;
  width: 8px; height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.tier .excludes {
  color: var(--faint);
  font-size: var(--step--1);
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
  margin-top: auto;
}
.tier .btn { margin-top: 1.4rem; }

/* Agency comparison + ongoing cost */
.cost-story {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.cost-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  background: var(--surface);
}
.cost-card h4 { font-size: var(--step-1); }
.cost-card p { color: var(--muted); margin-top: 0.7rem; }
.cost-card .big { color: var(--accent); font-family: var(--font-display); font-weight: 800; }
.strike { color: var(--faint); text-decoration: line-through; }

/* --- About ------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
.about-portrait {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--faint);
}
.about-portrait:has(img) { padding: 0; overflow: hidden; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; border-radius: inherit; }
.about-portrait .ph-label { font-size: var(--step--1); max-width: 24ch; }
.about-portrait .ph-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-3);
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.about-body h2 { font-size: var(--step-3); }
.about-body p { color: var(--muted); margin-top: 1.1rem; font-size: var(--step-1); }
.about-body .sig {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  font-size: var(--step-1);
}
.about-body .sig small { display: block; color: var(--faint); font-weight: 600; font-size: var(--step--1); letter-spacing: 0.04em; }

/* --- FAQ (native details/summary, fully accessible) -------------------- */
.faq-list { display: grid; gap: 0.9rem; max-width: 60rem; }
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.3rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
  flex: none;
  transition: transform 0.2s var(--ease);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.5rem 1.4rem; color: var(--muted); font-size: var(--step-0); }
.faq .answer p + p { margin-top: 0.8rem; }

/* --- Contact / intake -------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}
.contact-copy h2 { font-size: var(--step-3); }
.contact-copy p { color: var(--muted); margin-top: 1rem; font-size: var(--step-1); }
.contact-copy .checklist { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: 0.8rem; }
.contact-copy .checklist li { color: var(--ink); padding-left: 1.7rem; position: relative; }
.contact-copy .checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.45em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.intake {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.2rem);
}
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-0);
  margin-bottom: 0.5rem;
}
.field label .opt { color: var(--faint); font-weight: 600; font-size: var(--step--1); }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85em 1em;
  min-height: 52px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--muted); }

.form-note {
  background: var(--accent-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--muted);
  font-size: var(--step--1);
  margin-bottom: 1.4rem;
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
}
.form-note strong { color: var(--ink); }
.form-note .ico { color: var(--accent); font-weight: 800; flex: none; }

.form-result {
  display: none;
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-top: 1.2rem;
  color: var(--ink);
  font-size: var(--step-0);
}
.form-result.show { display: block; }

/* --- Footer ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2.5rem;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: var(--step--1); padding: 0 0.5em; }
.footer-nav a:hover { color: var(--ink); }
.footer-fine { color: var(--faint); font-size: var(--step--1); margin-top: 1.5rem; max-width: 70ch; }

/* --- Reveal-on-scroll (progressive, content visible without JS) --------- */
.reveal { }
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal { opacity: 1; transform: none; }
}

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .work-card.span-2 { grid-column: auto; }
  .main-nav { display: none; }              /* small screens use header CTA + in-page nav */
  html { scroll-padding-top: 80px; }
}
@media (max-width: 520px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .header-cta .btn { padding: 0 1.1em; font-size: var(--step-0); min-height: 48px; }
  .wordmark .suffix { display: none; }
}
