/* =========================================================
   Palette
   --X-bg   pastel card background
   --X-fg   saturated hue: headings and large text (≥3:1 on bg)
   --X-ink  25% darker shade: body text, small text, buttons (≥4.5:1 on bg, WCAG AA)
   ========================================================= */
:root {
  --cyan-bg: #D6F6FC;       --cyan-fg: #3E8FB0;       --cyan-ink: #2E6B84;
  --periwinkle-bg: #DFE8F9; --periwinkle-fg: #3B63E0; --periwinkle-ink: #1D42B7;
  --lavender-bg: #F1E8FC;   --lavender-fg: #8B3BE0;   --lavender-ink: #681DB7;
  --pink-bg: #F8E6F0;       --pink-fg: #CC3A75;       --pink-ink: #9C2857;
  --red-bg: #F8E3E3;        --red-fg: #CC3A30;        --red-ink: #992C24;
  --peach-bg: #FDEEDC;      --peach-fg: #DB6428;      --peach-ink: #A64A1C;

  --page: #FFFFFF;
  --text: #1A1A1A;
  --muted: #555555;
  --line: #E8E8E8;
  --focus: #1A1A1A;

  --radius: 28px;
  --radius-sm: 16px;
  --max: 1200px;
  --gutter: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: .18em; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--text); color: #fff; padding: .6em 1em; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Placeholder marker: easy to spot, easy to delete */
.tbc { font-size: .8em; font-weight: 500; opacity: .85; white-space: nowrap; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.nav__brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; text-decoration: none; }
.nav__links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 10px 8px; font-size: .875rem; font-weight: 500; text-decoration: none; color: var(--text);
  border-radius: 8px;
}
.nav__links a:hover { background: #F4F4F4; }
@media (min-width: 768px) { .nav__links { gap: 8px; } .nav__links a { padding: 10px 12px; font-size: .9375rem; } }

/* Phones: the brand name and links don't fit on one line, so the links drop to a second row */
@media (max-width: 639px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 10px; }
  .nav__brand { font-size: 1.125rem; }
  .nav__links { width: calc(100% + 16px); margin-left: -8px; justify-content: space-between; }
  .nav__links a { padding: 8px; }
}

section[id] { scroll-margin-top: 72px; }
@media (max-width: 639px) { section[id] { scroll-margin-top: 104px; } }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--text); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn--outline:hover { background: #F4F4F4; }
.btn--ink { background: var(--ink); color: #fff; }

/* Small uppercase CTA, arrow pinned to the right edge of the card */
.card__cta {
  display: flex; justify-content: space-between; align-items: center; gap: 1em;
  font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  min-height: 44px;
}
.card__cta { margin-top: auto; padding-top: 1rem; border-top: 1px solid currentColor; color: var(--ink); }
.card__cta:hover [aria-hidden], .more-link a:hover [aria-hidden] { transform: translateX(3px); }
.card__cta [aria-hidden], .more-link a [aria-hidden] { display: inline-block; transition: transform .2s ease; }
.more-link { margin: 2.5rem 0 0; text-align: center; }
.btn--lg { min-height: 60px; padding: .9em 2.2em; font-size: 1.125rem; }
@media (max-width: 479px) { .more-link .btn { width: 100%; } }

/* ---------- Cards ---------- */
.card {
  --bg: var(--cyan-bg); --fg: var(--cyan-fg); --ink: var(--cyan-ink);
  background: var(--bg); color: var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column;
}
.card h2, .card h3 { color: var(--fg); }
.card--cyan       { --bg: var(--cyan-bg);       --fg: var(--cyan-fg);       --ink: var(--cyan-ink); }
.card--periwinkle { --bg: var(--periwinkle-bg); --fg: var(--periwinkle-fg); --ink: var(--periwinkle-ink); }
.card--lavender   { --bg: var(--lavender-bg);   --fg: var(--lavender-fg);   --ink: var(--lavender-ink); }
.card--pink       { --bg: var(--pink-bg);       --fg: var(--pink-fg);       --ink: var(--pink-ink); }
.card--red        { --bg: var(--red-bg);        --fg: var(--red-fg);        --ink: var(--red-ink); }
.card--peach      { --bg: var(--peach-bg);      --fg: var(--peach-fg);      --ink: var(--peach-ink); }
.card--xl { padding: 28px 24px; }
@media (min-width: 768px) { .card { padding: 32px; } .card--xl { padding: 56px; } }
.lead { font-size: 1.1875rem; max-width: 52em; }

/* Gentle hover lift on interactive cards */
.card--lift { transition: transform .25s ease, box-shadow .25s ease; }
.card--lift:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .18); }

/* ---------- Layout ---------- */
.section { padding-block: 40px; }
@media (min-width: 768px) { .section { padding-block: 64px; } }
.section__head { max-width: 56em; margin-bottom: 28px; }
.section__head p { color: var(--muted); font-size: 1.125rem; }

.grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid { gap: 24px; } .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Templates: first 3 cards in a row of three, the rest in rows of two (6-column grid) */
@media (min-width: 768px) {
  .grid--templates { grid-template-columns: repeat(6, 1fr); }
  .grid--templates > li { grid-column: span 2; }
  .grid--templates > li:nth-child(n+4) { grid-column: span 3; }
}

/* ---------- Hero ---------- */
.hero { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 24px; align-items: center; }
.hero__sub { font-size: 1.1875rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media img { width: 100%; max-width: 480px; margin-inline: auto; border-radius: 18px; background: var(--periwinkle-bg); }
@media (max-width: 479px) { .hero__actions .btn { width: 100%; } }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 1fr; gap: 64px; padding-top: 80px; padding-bottom: 48px; }
}

/* ---------- Template cards ---------- */
.template__img {
  border-radius: var(--radius-sm); margin-bottom: 20px; width: 100%;
  aspect-ratio: 3 / 4; object-fit: contain; /* same frame per row, so cards line up */
}
.grid--templates > li:nth-child(n+4) .template__img { aspect-ratio: 4 / 3; }
.template h3 { margin-bottom: .35em; }
.template__meta { font-size: .875rem; font-weight: 700; margin-bottom: .6em; }
.template__meta span + span::before { content: "·"; margin: 0 .5em; }
.template__desc { margin-bottom: 1.25rem; }

/* ---------- Service ---------- */
ol.steps { display: grid; gap: 16px; margin: 32px 0 40px; }
.steps li { background: rgba(255, 255, 255, .7); border-radius: var(--radius-sm); padding: 20px; }
.steps h3 { font-size: 1.25rem; }
.steps p { margin: 0; }
.steps__n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800;
}
@media (min-width: 768px) { ol.steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } .steps li { padding: 24px; } }

.service__foot { display: grid; gap: 24px; align-items: end; }
.included { margin: 0; padding-left: 1.2em; }
.included li { margin-bottom: .4em; }
.price { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--fg); margin-bottom: 16px; }
.price-box .btn { width: 100%; }
@media (min-width: 768px) {
  .service__foot { grid-template-columns: 1fr auto; gap: 48px; }
  .price-box { text-align: right; }
  .price-box .btn { width: auto; }
}

/* ---------- Samples ---------- */
.grid--samples { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .grid--samples { grid-template-columns: repeat(3, 1fr); } }
.sample { margin: 0; }
.sample img { width: 100%; border-radius: var(--radius-sm); }
.sample figcaption { font-size: .9375rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.grid--samples .span-all { grid-column: 1 / -1; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 760px; }
.pair > div { position: relative; }
.pair__tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--text); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3em .7em; border-radius: 999px;
}

/* ---------- About ---------- */
.about { display: grid; gap: 28px; }
.about__photo { width: 160px; height: 160px; border-radius: 32px; object-fit: cover; background: rgba(255,255,255,.6); }
@media (min-width: 768px) {
  .about { grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
  .about__photo { width: 240px; height: 240px; }
}
.about p { max-width: 38em; }
ul.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li {
  background: #fff; color: var(--ink); border-radius: 999px; padding: .45em 1em;
  font-size: .875rem; font-weight: 700;
}
.trust { margin-top: 20px; font-size: .9375rem; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { margin-top: 12px; }
.faq details { border-top: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.faq details:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; min-height: 44px;
  font-weight: 700; font-size: 1.0625rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-size: 1.5rem; font-weight: 500; line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; max-width: 44em; }

/* ---------- Contact & footer ---------- */
.contact__email { margin: 8px 0 0; }
.mail-icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--ink); color: #fff;
  transition: transform .2s ease;
}
.mail-icon:hover { transform: translateY(-2px); }

.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding-block: 32px; font-size: .9375rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer__inner p { margin: 0; }
.site-footer, .site-footer a { color: var(--text); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card--lift:hover, .btn:hover { transform: none; }
}
