/* =========================================================================
   Stringture — styles
   Palette: warm paper + ink + thread-crimson accent. The product is B/W
   thread on a pale board, so the site stays calm and lets the canvases talk.
   ========================================================================= */
:root {
  --paper: #f7f4ee;
  --paper-deep: #efeae0;
  --card: #fffdf9;
  --ink: #17130e;
  --ink-soft: #4c463d;
  --muted: #6a6255;
  --line: rgba(23, 19, 14, 0.12);
  --accent: #b3402e;
  --accent-deep: #8f3021;
  --accent-soft: #f4ded8;
  --radius: 18px;
  --shadow: 0 18px 50px -22px rgba(23, 19, 14, 0.28);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.03rem;
  -webkit-font-smoothing: antialiased;
}
img, canvas { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.preview :focus-visible, .final :focus-visible { outline-color: #ffb3a1; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.3vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.22rem; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.sub { color: var(--ink-soft); max-width: 58ch; }
section { padding: 88px 0; }

/* ---------- promo bar ---------- */
.promobar {
  background: var(--ink);
  color: #f4efe6;
  text-align: center;
  font-size: 0.86rem;
  padding: 9px 16px;
}
.promobar b { color: #ffd9ce; font-weight: 700; letter-spacing: 0.04em; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; max-width: 1120px; margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-weight: 640; font-size: 1.3rem; text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
.logo svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-burger {
  display: none; background: none; border: 0; cursor: pointer; padding: 12px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -12px rgba(179, 64, 46, 0.6); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border-color: rgba(23, 19, 14, 0.45); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost--inverse { border-color: rgba(244, 239, 230, 0.4); color: #f4efe6; background: transparent; }
.btn-ghost--inverse:hover, .btn-ghost--inverse:focus-visible { border-color: #ffb3a1; }
.btn-dark { background: var(--ink); color: #f4efe6; }
.btn-dark:hover { background: #2b251d; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 84px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy p.lead { margin: 20px 0 30px; font-size: 1.12rem; color: var(--ink-soft); max-width: 50ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.86rem; color: var(--muted); }
.hero-note b { color: var(--ink-soft); }

.board {
  background: linear-gradient(160deg, #fffdf8, #f4efe4);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 30px);
  position: relative;
}
.board::after {
  content: ""; position: absolute; inset: 0; border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); pointer-events: none;
}
.board canvas { width: 100%; height: auto; aspect-ratio: 1; }
.board-caption {
  text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 12px;
  letter-spacing: 0.04em;
}

/* ---------- trust strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; background: var(--card); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.strip-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); }
.strip-item svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.strip-item b { display: block; color: var(--ink); font-weight: 650; }

/* ---------- steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 48px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; position: relative;
}
.step-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 600;
  color: var(--accent); opacity: 0.85; margin-bottom: 10px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; font-family: var(--font-body); font-weight: 650; }
.step p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* ---------- gallery ---------- */
.gallery { padding-top: 88px; }
.gallery-grid { columns: 3; column-gap: 20px; margin-top: 44px; }
.gallery-grid figure { break-inside: avoid; margin: 0 0 20px; }
.gallery-grid img {
  width: 100%; height: auto; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(23, 19, 14, 0.35);
}
.gallery-grid figcaption { font-size: 0.84rem; color: var(--muted); margin-top: 9px; padding: 0 4px; }
.gallery-grid video {
  width: 100%; height: auto; border-radius: 16px; display: block;
  border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(23, 19, 14, 0.35);
  background: var(--paper-deep);
}
.gallery-note { text-align: center; margin-top: 20px; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 960px) { .gallery-grid { columns: 2; } }
@media (max-width: 600px) { .gallery-grid { columns: 1; } }

/* ---------- preview generator ---------- */
.preview { background: var(--ink); color: #f4efe6; }
.preview .kicker { color: #ffb3a1; }
.preview .sub { color: #c9c1b3; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; margin-top: 46px; align-items: start; }
.dropzone {
  border: 2px dashed rgba(244, 239, 230, 0.35); border-radius: var(--radius);
  padding: 44px 30px; text-align: center; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dropzone:hover, .dropzone.dragover { border-color: #ffb3a1; background: rgba(255, 255, 255, 0.04); }
.dropzone.error { border-color: #e2543a; }
.dropzone.error span { color: #ffb3a1; }
.dropzone svg { width: 42px; height: 42px; margin: 0 auto 14px; color: #ffb3a1; }
.dropzone b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.dropzone span { font-size: 0.88rem; color: #c9c1b3; }
.preview-tips { margin-top: 22px; font-size: 0.88rem; color: #c9c1b3; }
.preview-tips li { margin: 7px 0 7px 18px; }
.preview-stage { display: none; }
.preview-stage.active { display: block; }
.preview-stage:focus { outline: none; }
.preview-board {
  background: linear-gradient(160deg, #fffdf8, #efe9dc);
  border-radius: 22px; padding: 20px; box-shadow: var(--shadow);
}
.preview-board canvas { width: 100%; height: auto; aspect-ratio: 1; }
.preview-status {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; font-size: 0.9rem; color: #c9c1b3;
}
.preview-progress {
  height: 4px; background: rgba(244, 239, 230, 0.18); border-radius: 4px;
  overflow: hidden; margin-top: 10px;
}
.preview-progress i {
  display: block; height: 100%; width: 0%; background: #ffb3a1;
  transition: width 0.3s ease;
}
.preview-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.preview-privacy {
  margin-top: 18px; font-size: 0.82rem; color: #a39a8b;
  display: flex; gap: 8px; align-items: flex-start;
}
.preview-privacy svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: #7fa886; }
.preview-noscript {
  margin-top: 22px; padding: 16px 20px; border: 1px solid rgba(244, 239, 230, 0.25);
  border-radius: var(--radius); font-size: 0.9rem; color: #c9c1b3;
}

/* ---------- products ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 26px; display: flex; flex-direction: column; position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card.featured { border-color: var(--accent); border-width: 1.5px; }
.card-flag {
  position: absolute; top: -13px; left: 24px; z-index: 2;
  background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.card-media { position: relative; margin: -26px -26px 22px; }
.card-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 21px 21px 0 0;
}
.card.featured .card-media img { border-radius: 20px 20px 0 0; }
.card-chip {
  position: absolute; right: 16px; bottom: -20px;
  width: 84px; height: 84px; border-radius: 50%;
  background: #fffdf8; border: 1px solid var(--line);
  box-shadow: 0 8px 20px -8px rgba(23, 19, 14, 0.35);
  padding: 8px;
}
.card-chip canvas { width: 100%; height: auto; aspect-ratio: 1; }
.scale-strip { max-width: 820px; margin: 46px auto 0; }
.scale-strip svg { width: 100%; height: auto; display: block; }
.card h3 { margin-bottom: 4px; }
.card-size { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.card-price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; }
.card-price del {
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 500;
  color: var(--muted); margin-right: 4px;
}
.card-price small { font-size: 0.85rem; color: var(--accent); font-family: var(--font-body); font-weight: 600; }
.card ul { list-style: none; margin: 16px 0 22px; flex: 1; }
.card ul li {
  font-size: 0.89rem; color: var(--ink-soft); padding: 6px 0 6px 26px; position: relative;
}
.card ul li::before {
  content: ""; position: absolute; left: 2px; top: 12px; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-48deg);
}
.cards-note { text-align: center; margin-top: 26px; font-size: 0.9rem; color: var(--muted); }
.cards-note b { color: var(--ink-soft); }

/* ---------- occasions ---------- */
.occasions { background: var(--paper-deep); }
.occ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 8px; }
.occ-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.occ-chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: 0.9rem; color: var(--ink-soft);
}
.occ-note {
  margin-top: 34px; padding: 22px 26px; border-left: 3px solid var(--accent);
  background: var(--card); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.98rem; color: var(--ink-soft);
}

/* ---------- made for you ---------- */
.mfy .wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.mfy-points { margin-top: 26px; list-style: none; }
.mfy-points li {
  padding: 12px 0 12px 36px; position: relative;
  color: var(--ink-soft); font-size: 0.96rem; border-bottom: 1px solid var(--line);
}
.mfy-points li:last-child { border-bottom: 0; }
.mfy-points li b { color: var(--ink); }
.mfy-points li::before {
  content: ""; position: absolute; left: 4px; top: 19px; width: 16px; height: 9px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-48deg);
}
.mfy-board { max-width: 440px; justify-self: end; }
.mfy-flow { list-style: none; }
.mfy-flow li { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.mfy-flow li:last-child { border-bottom: 0; }
.mfy-flow li b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 44px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 4px; font: inherit; font-weight: 600; font-size: 1.02rem;
  color: var(--ink); text-align: left;
}
.faq-q svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s ease; color: var(--accent); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  color: var(--ink-soft); font-size: 0.95rem;
}
.faq-a p { padding: 0 4px 22px; max-width: 68ch; }

/* ---------- final CTA ---------- */
.final { background: var(--ink); color: #f4efe6; text-align: center; }
.final h2 { max-width: 22ch; margin: 0 auto 18px; }
.final p { color: #c9c1b3; max-width: 52ch; margin: 0 auto 32px; }
.final .btn-primary { box-shadow: 0 14px 34px -12px rgba(179, 64, 46, 0.75); }

/* ---------- footer ---------- */
footer { padding: 46px 0 60px; font-size: 0.88rem; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-brand { font-family: var(--font-display); font-weight: 640; font-size: 1.1rem; color: var(--ink); margin-bottom: 8px; }
.foot-col p { margin: 4px 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  section { padding: 68px 0; }
  .hero .wrap, .preview-grid, .occ-grid, .mfy .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 64px; }
  .board { max-width: 460px; margin: 0 auto; }
  .mfy-board { justify-self: center; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .mfy .wrap > .mfy-board { order: 2; }
}
@media (max-width: 700px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px 22px 18px; gap: 0; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; }
  .nav-links .btn { margin-top: 10px; }
  .nav-burger { display: block; }
  .steps-grid { grid-template-columns: 1fr; }
  .strip .wrap { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .faq-a, .preview-progress i { transition: none; }
}
