:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --ink: #2b2347;
  --muted: #6b6485;
  --primary: #ff6b4a;
  --primary-dark: #e2512f;
  --accent: #6c5ce7;
  --sun: #ffc93c;
  --mint: #2ec4a6;
  --line: #ece6f5;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #bfe6ff;
  position: relative;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.6;
}

/* Sky background: a fixed layer (works on iOS, unlike background-attachment: fixed),
   with the image variant picked by screen shape so it is never stretched badly. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #bfe6ff url("bg/bg-wide.jpg") center bottom / cover no-repeat;
}
@media (max-aspect-ratio: 4/3) { body::before { background-image: url("bg/bg-square.jpg"); } }
@media (max-aspect-ratio: 7/10) { body::before { background-image: url("bg/bg-tablet.jpg"); } }
@media (max-aspect-ratio: 3/5) { body::before { background-image: url("bg/bg-phone.jpg"); } }
@media (max-aspect-ratio: 1/2) { body::before { background-image: url("bg/bg-phone-tall.jpg"); } }

h1, h2, h3 { font-family: "Fredoka", "Quicksand", sans-serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.4rem; }
.brand img { height: 52px; width: auto; display: block; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; }
.nav a:hover, .nav a.active { color: var(--primary); }

/* Mobile menu button (hidden on desktop) */
.menu-btn {
  display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 12px;
  background: #f3effe; cursor: pointer; flex-direction: column; justify-content: space-between;
}
.menu-btn span { display: block; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .2s, opacity .2s; }
.site-header.menu-open .menu-btn span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.site-header.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.site-header.menu-open .menu-btn span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  background: var(--primary); color: #fff; text-decoration: none; font-weight: 700;
  border: 0; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--primary-dark); }
.btn.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn.secondary:hover { background: var(--accent); color: #fff; }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero .wrap > div:first-child { background: rgba(255,255,255,.88); border-radius: 28px; padding: 32px; box-shadow: 0 10px 30px rgba(30,90,160,.12); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-art { background: linear-gradient(135deg, #ffe3d6, #e6defd); border-radius: 28px; padding: 32px; text-align: center; }
.hero-art img { max-width: 420px; width: 100%; height: auto; }
.pill { display: inline-block; background: #fff1c9; color: #8a5a00; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; margin-bottom: 12px; }

section { padding: 48px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 32px; background: rgba(255,255,255,.88); border-radius: var(--radius); padding: 20px 24px; }
.section-head p:last-child { margin-bottom: 0; }
.section-head p { color: var(--muted); }

/* Feature grid */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .emoji { font-size: 2rem; display: block; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

/* Pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plan { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.plan.highlight { border-color: var(--primary); }
.plan .tag { position: absolute; top: -13px; left: 24px; background: var(--primary); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan .price { font-family: "Fredoka", sans-serif; font-size: 2.4rem; font-weight: 700; margin: 4px 0 0; }
.plan .per { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 700; }
.plan .desc { color: var(--muted); font-size: .95rem; }
.note { background: #f3effe; border-radius: var(--radius); padding: 18px 20px; color: var(--ink); margin-top: 28px; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); font-weight: 700; margin-bottom: 10px; }

/* Policy / text pages */
.page { padding: 48px 0 64px; }
.page .wrap { max-width: 820px; background: rgba(255,255,255,.94); border-radius: 24px; padding: 32px; box-shadow: 0 10px 30px rgba(30,90,160,.12); }
.page .section-head { background: none; padding: 0; }
.page h2 { font-size: 1.4rem; margin-top: 1.8em; }
.page .updated { color: var(--muted); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }

table.info { width: 100%; border-collapse: collapse; margin: 1em 0; }
table.info th, table.info td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.info th { width: 38%; }

/* Contact form */
.form-panel { max-width: 820px; margin: 0 auto; background: rgba(255,255,255,.94); border-radius: 24px; padding: 32px; box-shadow: 0 10px 30px rgba(30,90,160,.12); }
.contact-form { display: grid; gap: 16px; margin-top: 12px; }
.contact-form .field-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 500; color: var(--ink); width: 100%;
  padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; }
.contact-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.contact-form .consent input { width: auto; margin-top: 5px; }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 700; }
.form-status.ok { color: #138a6f; }
.form-status.err { color: #c0392b; }

/* Footer */
.site-footer { background: var(--ink); color: #d9d4ea; padding: 40px 0 24px; margin-top: 32px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr; }
.footer-grid h3 { color: #fff; font-size: 1.05rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 24px; padding-top: 16px; font-size: .9rem; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .page .wrap { margin: 0 12px; padding: 22px 18px; }
  .hero .wrap > div:first-child { padding: 22px 18px; }
  .section-head { padding: 16px; }
  .contact-form .field-row { grid-template-columns: 1fr; }
  .form-panel { padding: 22px 18px; }
  .contact-form .btn { justify-self: stretch; }
  .site-header .wrap { flex-wrap: nowrap; position: relative; }
  .menu-btn { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(30,90,160,.15);
  }
  .site-header.menu-open .nav { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 1.05rem; }
  table.info th { width: 45%; }
}
