/* MachineMade Recipes – site styles */
:root {
  --navy: #14213D;
  --navy-2: #1C2C4D;
  --line: #3A4B70;
  --pink: #FF8FB3;
  --berry: #C2185B;
  --berry-text: #A3134B;
  --mint: #9BE7D8;
  --mint-bg: #D7F5EE;
  --teal: #2A9D8F;
  --yellow: #FFD25F;
  --bg: #F4F7FB;
  --white: #FFFFFF;
  --muted: #4F5B6B;
  --soft: #C9D3E3;
  --border: #D5DDE7;
  --radius: 24px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--navy); background: var(--bg); line-height: 1.5; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1.display { font-size: clamp(2.5rem, 5.5vw, 4.2rem); }
h2.display { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.08; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); margin: 0; }
.dark { background: var(--navy); color: var(--white); }
.dark .lead { color: var(--soft); }
.section { padding: 96px 0; }
.white { background: var(--white); }
.pill { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; padding: 7px 12px; border-radius: 999px; }
.pill-outline { color: var(--mint); border: 1px solid #2E4A6B; }
.pill-yellow { color: var(--navy); background: var(--yellow); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 14px; border: none; font-weight: 700; font-size: 16px; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-pink { background: var(--pink); color: var(--navy); }
.btn-berry { background: var(--berry); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid var(--line); font-weight: 600; }
.btn-light { background: var(--white); color: var(--navy); border: 1.5px solid var(--border); font-weight: 600; }

/* Header */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--navy); border: 1.5px solid var(--line); display: grid; place-items: center; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 20px; }
.brand-name span { color: var(--pink); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav-links a { color: #DCE3EE; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -2px 0 var(--pink); padding-bottom: 4px; }
.nav-links .btn { min-height: 44px; padding: 0 18px; border-radius: 999px; color: var(--navy); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; color: var(--white); cursor: pointer; place-items: center; }
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 0 0 18px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--pink); }
  .nav-links .btn { margin-top: 8px; }
}

/* Hero */
.hero { padding: 48px 0 96px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-art { flex: 0 1 320px; margin: 0 auto; }

/* Phone mockup */
.phone { width: 300px; height: 610px; border-radius: 46px; background: #0B1428; padding: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: float 6s ease-in-out infinite; }
.screen { height: 100%; border-radius: 36px; background: var(--bg); color: var(--navy); overflow: hidden; padding: 44px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.mini-brand { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-size: 13px; }
.mini-brand b { color: var(--berry-text); font-weight: 600; }
.mini-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--navy); display: grid; place-items: center; }
.dotw { background: var(--navy); color: var(--white); border-radius: 20px; overflow: hidden; }
.dotw-img { height: 120px; background: var(--teal); position: relative; }
.dotw-tag { position: absolute; top: 10px; left: 10px; background: var(--yellow); color: var(--navy); font-size: 9px; font-weight: 800; padding: 5px 8px; border-radius: 999px; }
.dotw-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.mini-row { background: var(--white); border-radius: 12px; padding: 8px; display: flex; gap: 8px; align-items: center; }
.mini-thumb { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } html { scroll-behavior: auto; } }

/* Forms */
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; max-width: 520px; }
.inline-form input { flex: 1 1 240px; height: 54px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--navy-2); color: var(--white); padding: 0 18px; font-size: 16px; }
.inline-form input::placeholder { color: #A9B6CA; }
.form-note { margin: 0; font-size: 14px; color: #A9B6CA; }
.form-note.ok { color: var(--mint); font-weight: 600; }
.form-note.err { color: var(--pink); font-weight: 600; }
.card-form { background: var(--bg); border-radius: 28px; padding: clamp(20px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.white .card-form { background: var(--bg); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 50px; border-radius: 12px; border: 1.5px solid var(--border); padding: 0 14px; font-size: 16px; font-weight: 400; background: var(--white); }
.field textarea { padding: 12px 14px; resize: vertical; }
.success { background: var(--mint-bg); border-radius: 24px; padding: 40px; text-align: center; }
.success h3 { font-family: var(--display); font-size: 28px; margin: 0 0 6px; }
.success p { margin: 0; color: #1E4D45; }
[hidden] { display: none !important; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--white); font-size: 15px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); font-weight: 700; }
.works { padding: 36px 0; background: var(--white); border-bottom: 1px solid #E2E8F0; }
.works .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: center; }
.works h2 { margin: 0; font-size: 14px; letter-spacing: .08em; color: var(--muted); }
.tag { font-size: 16px; font-weight: 600; padding: 10px 16px; border-radius: 999px; background: var(--bg); }
.tag.dashed { background: none; border: 1.5px dashed #A9B4C2; color: var(--muted); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,33,61,.10); }
.card h3 { margin: 0; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.icon-box { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.steps li { background: var(--bg); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.steps .num { font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--berry); line-height: 1; }
.steps h3 { margin: 0; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); }
.head-block { display: flex; flex-direction: column; gap: 12px; max-width: 660px; margin-bottom: 44px; }
.center { text-align: center; margin-left: auto; margin-right: auto; align-items: center; }

/* Creator block */
.creator-band { background: var(--navy); color: var(--white); border-radius: 32px; padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.creator-band > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.perks { flex: 1 1 340px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.perks li { background: var(--navy-2); border-radius: 18px; padding: 18px 20px; }
.perks b { display: block; font-size: 17px; }
.perks span { color: var(--soft); font-size: 15px; }

/* Creator page */
.profile-card { background: var(--white); color: var(--navy); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.4); animation: float 7s ease-in-out infinite; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: #FFB4C8; border: 3px solid var(--yellow); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 26px; flex-shrink: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.stats span { background: var(--bg); border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; font-size: 11px; color: var(--muted); }
.stats b { font-size: 18px; color: var(--navy); }
.code { border: 2px dashed var(--berry); border-radius: 16px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.code b { font-family: var(--display); font-size: 20px; letter-spacing: .06em; }
.badge-free { font-size: 12px; font-weight: 700; color: #11705F; background: var(--mint-bg); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tab { min-height: 96px; text-align: left; padding: 18px 20px; border-radius: 20px; border: 2px solid transparent; background: var(--white); cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: background .2s ease; }
.tab .n { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.tab .t { font-size: 17px; font-weight: 700; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); }
.panel { background: var(--white); border-radius: 28px; padding: clamp(24px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.panel > div { flex: 1 1 380px; }
.panel h3 { font-family: var(--display); font-size: 30px; margin: 0 0 12px; }
.panel p { margin: 0; color: var(--muted); font-size: 17px; }
.checks { flex: 1 1 320px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 3px; }
.dash { background: var(--navy); color: var(--white); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1 1 460px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dash-stats span { background: var(--navy-2); border-radius: 16px; padding: 14px; font-size: 12px; color: var(--soft); display: flex; flex-direction: column; gap: 4px; }
.dash-stats b { font-family: var(--display); font-size: 28px; color: var(--white); }
.dash-row { display: flex; justify-content: space-between; background: var(--navy-2); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.dash-row span:last-child { color: var(--mint); }
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.split > div:first-child { flex: 1 1 400px; display: flex; flex-direction: column; gap: 14px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border-radius: 18px; overflow: hidden; }
.faq-q { width: 100%; min-height: 64px; border: none; background: none; padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; cursor: pointer; font-size: 17px; font-weight: 700; }
.faq-q small { display: block; font-size: 12px; font-weight: 700; color: var(--berry-text); letter-spacing: .04em; margin-bottom: 4px; }
.faq-q .plus { font-size: 26px; color: var(--berry); line-height: 1; transition: transform .2s ease; flex-shrink: 0; }
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; color: var(--muted); margin: 0; }
.searchbar { width: 100%; display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 18px; padding: 0 20px; height: 62px; }
.searchbar input { flex: 1; border: none; outline: none; font-size: 17px; background: transparent; color: var(--navy); }
.empty { background: var(--white); border-radius: 18px; padding: 28px; text-align: center; color: var(--muted); }
.mail-box { background: var(--bg); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.mail-box a { font-weight: 700; color: var(--berry-text); font-size: 17px; word-break: break-all; }

/* Legal */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hl { background: var(--white); border-radius: 22px; padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.hl .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--mint-bg); display: grid; place-items: center; flex-shrink: 0; }
.hl b { display: block; font-size: 17px; }
.hl span { color: var(--muted); font-size: 15px; }
.legal { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.toc { flex: 1 1 240px; background: var(--white); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 96px; }
.toc p { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin: 4px 10px 8px; }
.toc a { padding: 9px 10px; border-radius: 10px; font-size: 15px; }
.toc a.active { background: var(--navy); color: var(--white); font-weight: 700; }
.legal-body { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.legal-body article { background: var(--white); border-radius: 22px; padding: 26px 28px; scroll-margin-top: 96px; border: 2px solid transparent; transition: border-color .2s ease; }
.legal-body article.active { border-color: var(--pink); }
.legal-body h2 { font-family: var(--display); font-size: 24px; margin: 0 0 12px; }
.legal-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: #34404F; }
.doc-switch { display: inline-flex; gap: 6px; background: var(--navy-2); padding: 6px; border-radius: 16px; }
.doc-switch a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 12px; color: #DCE3EE; font-weight: 500; }
.doc-switch a[aria-current="page"] { background: var(--white); color: var(--navy); font-weight: 700; }
@media (max-width: 760px) { .toc { position: static; } }

/* Footer */
.site-footer { background: var(--navy); color: var(--soft); padding: 40px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #DCE3EE; }
.footer-links a.social { color: var(--pink); font-weight: 600; }
.disclaimer { flex-basis: 100%; margin: 0; font-size: 12px; color: #A9B6CA; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .profile-card { animation: none; } }
