/* Flossbook placeholder site: shared styles */
:root {
  --aida: #fbf6ec;
  --aida-deep: #f5ecdb;
  --hole: rgba(96, 64, 32, 0.11);
  --ink: #2b2340;
  --ink-soft: #5b5470;
  --coral: #e4574f;
  --coral-btn: #c2403a;
  --coral-btn-hover: #a8332e;
  --rose: #f6a9a2;
  --teal: #1d7472;
  --teal-light: #2a9d9a;
  --mustard: #edb23e;
  --lilac: #a792d6;
  --sage: #8cb98a;
  --card: #fffdf8;
  --radius: 22px;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--aida);
  /* Aida cloth: a soft grid of holes */
  background-image: radial-gradient(var(--hole) 1.2px, transparent 1.4px);
  background-size: 16px 16px;
  overflow-x: hidden;
}

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--coral-btn); }

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

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

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.5rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.brand img { width: 34px; height: 34px; }
.brand:hover { color: var(--ink); }

.nav-link {
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  color: var(--ink); padding: 8px 16px; border-radius: 999px;
  border: 2px dashed rgba(43, 35, 64, 0.25);
}
.nav-link:hover { color: var(--ink); border-color: var(--coral); background: var(--card); }

/* ---------- hero ---------- */
.hero { padding: 24px 0 72px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); color: var(--teal);
  border: 2px dashed var(--teal-light); border-radius: 999px;
  padding: 6px 16px; font-weight: 700; font-size: 0.9rem;
}
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.75); } }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif; color: var(--ink);
  font-variation-settings: "SOFT" 100, "WONK" 0; letter-spacing: -0.02em; line-height: 1.08;
}

.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); margin: 22px 0 18px; font-weight: 700; }

/* a backstitched underline */
.stitched {
  position: relative; white-space: nowrap; color: var(--coral-btn);
  font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1;
}
.stitched::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -0.08em; height: 5px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 16px, transparent 16px 24px);
  border-radius: 3px;
}

.lead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }

.crafts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.crafts li {
  font-size: 0.88rem; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  background: var(--card); border: 1.5px solid rgba(43, 35, 64, 0.12);
}
.crafts li:nth-child(4n+1) { box-shadow: inset 0 -3px 0 var(--coral); }
.crafts li:nth-child(4n+2) { box-shadow: inset 0 -3px 0 var(--teal-light); }
.crafts li:nth-child(4n+3) { box-shadow: inset 0 -3px 0 var(--mustard); }
.crafts li:nth-child(4n+4) { box-shadow: inset 0 -3px 0 var(--lilac); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  padding: 15px 26px; border-radius: 999px; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--coral-btn); color: #fff; box-shadow: 0 4px 0 #8e2a26; }
.btn-primary:hover { background: var(--coral-btn-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 #8e2a26; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #8e2a26; }
.btn-ghost { color: var(--ink); border: 2px dashed rgba(43, 35, 64, 0.35); background: transparent; }
.btn-ghost:hover { color: var(--ink); border-color: var(--teal-light); background: var(--card); }
.btn svg { width: 20px; height: 20px; }

.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(90, 58, 26, 0.18)); }

/* floating stitches */
.float { position: absolute; width: 22px; height: 22px; pointer-events: none; opacity: 0.85; animation: bob 6s ease-in-out infinite; }
.float::before, .float::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 120%; height: 4px; border-radius: 3px;
  background: currentColor; transform: translate(-50%, -50%) rotate(45deg);
}
.float::after { transform: translate(-50%, -50%) rotate(-45deg); filter: brightness(1.12); }
.f1 { color: var(--mustard); top: 4%; left: 46%; }
.f2 { color: var(--lilac); top: 70%; left: 3%; animation-delay: -2s; width: 16px; height: 16px; }
.f3 { color: var(--teal-light); top: 86%; left: 54%; animation-delay: -4s; }
.f4 { color: var(--sage); top: 18%; left: 2%; animation-delay: -1s; width: 14px; height: 14px; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(12deg); } }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 10px 0 12px; }
.section-head p { color: var(--ink-soft); margin: 0; }
.eyebrow { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 26px 22px 24px;
  border: 2px dashed rgba(43, 35, 64, 0.18);
  box-shadow: 0 1px 0 rgba(43, 35, 64, 0.04), 0 12px 28px -18px rgba(90, 58, 26, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px) rotate(-0.4deg); border-color: var(--coral); }
.card img { width: 56px; height: 56px; display: block; margin-bottom: 14px; }
.card h3 { font-size: 1.3rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.promise {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px;
  list-style: none; padding: 0;
}
.promise li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 0.97rem; }
.promise li::before {
  content: "♥"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--card); color: var(--coral-btn); font-size: 0.85rem; line-height: 1; border: 1.5px solid rgba(43, 35, 64, 0.12);
}

/* call-out band */
.band {
  background: var(--ink); color: #f7f1e6; border-radius: 32px; padding: 56px 48px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; position: relative; overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.2px, transparent 1.4px); background-size: 16px 16px;
}
.band::before {
  content: ""; position: absolute; inset: 14px; border: 2px dashed rgba(246, 169, 162, 0.55); border-radius: 22px; pointer-events: none;
}
.band h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 12px; }
.band p { margin: 0; color: #d9d2e6; }
.band .actions { justify-content: flex-end; }
.band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.band .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.band .eyebrow { color: var(--rose); }

/* ---------- footer ---------- */
.site-footer { padding: 40px 0 56px; color: var(--ink-soft); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 2px dashed rgba(43, 35, 64, 0.15); padding-top: 24px; }
.site-footer a { color: var(--ink); font-weight: 600; }

/* ---------- survey page ---------- */
.page-hero { padding: 24px 0 8px; text-align: center; }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); margin: 18px 0 14px; }
.page-hero .lead { margin: 0 auto 10px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.facts li { background: var(--card); border: 1.5px solid rgba(43, 35, 64, 0.12); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 0.92rem; }

.form-frame {
  margin: 36px auto 18px; max-width: 760px; background: var(--card);
  border-radius: 28px; padding: 14px; border: 2px dashed rgba(43, 35, 64, 0.2);
  box-shadow: 0 20px 44px -26px rgba(90, 58, 26, 0.45);
}
.form-frame iframe { display: block; width: 100%; height: min(1600px, 82vh); min-height: 560px; border: 0; border-radius: 18px; background: #fff; }
.form-note { max-width: 760px; margin: 0 auto; text-align: center; color: var(--ink-soft); font-size: 0.95rem; }
.privacy {
  max-width: 760px; margin: 28px auto 0; background: var(--card); border-radius: var(--radius); padding: 22px 26px;
  border-left: 6px solid var(--teal-light);
}
.privacy h2 { font-size: 1.3rem; margin: 0 0 8px; }
.privacy p { margin: 0 0 8px; color: var(--ink-soft); font-size: 0.97rem; }
.privacy p:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 60px 0 80px; }
.lost img { width: min(260px, 70vw); margin: 0 auto 10px; display: block; }
.lost h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 10px 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .promise { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; padding: 44px 30px; }
  .band .actions { justify-content: flex-start; }
}
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; margin: 0 auto; order: -1; }
  .hero .wrap { gap: 8px; }
  .hero { padding-bottom: 48px; }
  section { padding: 52px 0; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero-art { max-width: 230px; }
  .hero h1 { margin-top: 16px; }
  .features, .promise { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .band { padding: 38px 22px; border-radius: 24px; }
  .form-frame { padding: 8px; border-radius: 20px; }
  .nav-link { padding: 6px 12px; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
