:root {
    --bg: #fbf7f0;
    --surface: #ffffff;
    --ink: #2a2722;
    --ink-soft: #6b6457;
    --line: #ece4d6;
    --amber: #f5a623;
    --amber-dark: #d8861a;
    --accent: #1f6feb;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(60, 47, 20, 0.08);
    --shadow-lg: 0 24px 60px rgba(60, 47, 20, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(1040px, 92vw);
    margin: 0 auto;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
.muted { color: var(--ink-soft); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(251, 247, 240, 0.85);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__mark { font-size: 1.3rem; }
.brand__accent { color: var(--amber-dark); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { color: var(--ink-soft); font-weight: 600; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
    background: var(--amber);
    color: #4a3208;
    box-shadow: 0 6px 18px rgba(245, 166, 35, 0.35);
}
.btn--primary:hover { background: var(--amber-dark); color: #fff; }
.btn--ghost {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}
.btn--lg { padding: 16px 28px; font-size: 1.1rem; }
.btn--block { display: flex; width: 100%; }

/* Hero */
.hero { padding: 72px 0 48px; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 16px; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 28px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.eyebrow {
    display: inline-block;
    background: #fff3dd;
    color: var(--amber-dark);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

/* Hero preview card */
.preview-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 28px;
}
.preview-card__site {
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 22px;
    background: #fcfbf8;
}
.preview-card__bar { height: 8px; width: 60%; background: var(--line); border-radius: 999px; margin-bottom: 10px; }
.preview-card__bar.short { width: 35%; }
.preview-card__caption { text-align: center; margin-top: 14px; font-size: .85rem; }

/* Sections */
.section { padding: 56px 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section__head h2 { font-size: 2rem; margin: 0 0 10px; }
.section--tinted { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}
.step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--amber); color: #4a3208; font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--ink-soft); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 20px; }
.feature__icon { font-size: 1.6rem; }
.feature h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* Maker tip block */
.maker {
    background: linear-gradient(135deg, #fff6e6, #fdeccb);
    border: 1px solid #f2dcae;
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
}
.maker h2 { margin: 0 0 8px; }
.maker p { margin: 0 auto 18px; max-width: 520px; color: #7a5a1f; }
.maker--celebrate { margin-bottom: 24px; }

/* Live preview on the create form */
.live-preview {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fcfbf8;
    padding: 18px;
    margin: 0 0 28px;
    text-align: center;
    position: relative;
}
.live-preview__tag {
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--amber);
    color: #4a3208;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 3px 9px;
    border-radius: 999px;
}
.live-preview__stage {
    display: flex;
    justify-content: center;
    padding: 14px 0 6px;
}
.live-preview__caption { margin: 4px 0 0; font-size: .85rem; color: var(--ink-soft); }
.beer-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    font: 700 16px/1 inherit;
    color: #fff;
    background: var(--amber);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    cursor: default;
}

/* Radio list (payment mode) */
.field-title { display: block; font-weight: 600; margin-bottom: 10px; }
.radio-list { display: flex; flex-direction: column; gap: 10px; }
.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
}
.radio-option input[type=radio] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--amber-dark);
}

/* Forms */
.form-wrap {
    width: min(680px, 92vw);
    margin: 40px auto 80px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px;
}
.form-wrap h1 { margin-top: 0; }
form .field { margin-bottom: 20px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; }
form input[type=text],
form input[type=email],
form input[type=number],
form textarea,
form select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fffdf9;
    color: var(--ink);
}
form input:focus, form textarea:focus, form select:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
}
form input[type=color] { height: 46px; padding: 4px; width: 80px; cursor: pointer; }
.help { font-size: .85rem; color: var(--ink-soft); margin-top: 5px; }
.choice-row { display: flex; flex-direction: column; gap: 8px; }
.choice-row label { font-weight: 500; display: flex; gap: 8px; align-items: center; }
.checkbox-field label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.errors { color: #c0392b; font-size: .88rem; list-style: none; padding: 0; margin: 6px 0 0; }
.alert {
    background: #fdecea; border: 1px solid #f5c6cb; color: #842029;
    padding: 12px 14px; border-radius: 10px; margin-bottom: 20px;
}

/* Embed / show page */
.show-grid { width: min(900px, 92vw); margin: 40px auto 80px; }
.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 30px; margin-bottom: 24px;
}
.card h2 { margin-top: 0; }
.code-box {
    position: relative;
    background: #1e1b16; color: #f4ede0;
    border-radius: 12px; padding: 18px 18px; padding-right: 110px;
    font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
    font-size: .9rem; white-space: pre-wrap; word-break: break-all;
    line-height: 1.5;
}
.copy-btn {
    position: absolute; top: 12px; right: 12px;
    background: var(--amber); color: #4a3208; border: none;
    padding: 8px 14px; border-radius: 8px; font-weight: 700; cursor: pointer;
}
.copy-btn:hover { background: var(--amber-dark); color: #fff; }
.preview-stage {
    border: 1px dashed var(--line); border-radius: 12px;
    padding: 30px; display: flex; justify-content: center; background: #fcfbf8;
}
.success-banner {
    background: #e7f6ec; border: 1px solid #b6e2c4; color: #1d6b3a;
    padding: 14px 16px; border-radius: 10px; font-weight: 600; margin-bottom: 24px;
}

/* Thanks page */
.thanks { width: min(620px, 92vw); margin: 70px auto; text-align: center; }
.thanks .emoji { font-size: 3.4rem; }

@media (max-width: 820px) {
    .hero__inner { grid-template-columns: 1fr; }
    .steps, .features { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .site-nav a:first-child { display: none; }
}
