:root {
    --spark-red: #b40014;
    --spark-red-dark: #85000f;
    --ink: #191919;
    --muted: #606060;
    --line: #dedede;
    --soft: #fff7f8;
    --white: #ffffff;
    --cream: #fffaf7;
    --rose: #ffe9ed;
    --navy: #17162f;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: #f7f7f7;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a { color: var(--spark-red-dark); }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem max(1rem, calc((100% - 72rem) / 2));
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.brand {
    color: #111;
    font-size: 1.45rem;
    font-weight: 800;
    text-decoration: none;
}

.brand span { color: var(--spark-red); padding: 0 .15rem; }

.registration-shell {
    width: min(100% - 2rem, 42rem);
    margin: 2rem auto;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 .75rem 2rem rgb(0 0 0 / 7%);
}

.step {
    margin: 0;
    color: var(--spark-red-dark);
    font-weight: 700;
}

h1 { margin: .25rem 0 .5rem; font-size: clamp(1.8rem, 5vw, 2.5rem); }
h2 { margin-top: 0; }
.intro > p:last-child { color: var(--muted); }

.registration-form { display: grid; gap: .6rem; margin-top: 1.5rem; }
label, legend { font-weight: 700; }

input[type="email"], input[type="password"], input[type="date"], input[type="text"], input:not([type]), select {
    width: 100%;
    min-height: 3rem;
    padding: .75rem;
    border: 1px solid #aaa;
    border-radius: .45rem;
    font: inherit;
}

input:focus, button:focus, a:focus {
    outline: 3px solid rgb(180 0 20 / 25%);
    outline-offset: 2px;
}

textarea { width: 100%; padding: .75rem; border: 1px solid #aaa; border-radius: .45rem; font: inherit; resize: vertical; }
.wide { width: min(100% - 2rem, 62rem); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.choice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.question { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.question:last-child { border-bottom: 0; }
.question h2 { font-size: 1rem; }
.question-row { display: grid; grid-template-columns: minmax(0,2fr) minmax(8rem,1fr); gap: 1rem; align-items: end; }
.optional { color: var(--muted); font-size: .85rem; font-weight: 400; }
.form-actions { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.secondary { background: #eee; color: #222; }
.secondary:hover { background: #ddd; }

fieldset {
    display: grid;
    gap: .8rem;
    margin: 1rem 0 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: .55rem;
}

.check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; }
.check input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin-top: .15rem; }
.hint, .privacy-note { margin: -.25rem 0 .4rem; color: var(--muted); font-size: .9rem; }
.field-error { margin: -.25rem 0 .4rem; color: #a00000; font-weight: 700; }

button, .button-link {
    display: inline-block;
    min-height: 3rem;
    margin-top: 1rem;
    padding: .75rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--spark-red);
    color: var(--white);
    font: inherit;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

button:hover, .button-link:hover { background: var(--spark-red-dark); }

.notice { margin-top: 1.5rem; padding: 1rem; border-radius: .55rem; }
.notice.success { background: #eef8f0; border: 1px solid #75a77e; }
.notice.error { background: var(--soft); border: 1px solid var(--spark-red); }

@media (max-width: 38rem) {
    .site-header { align-items: flex-start; flex-direction: column; }
    .registration-shell { margin: 1rem auto; border-radius: .6rem; }
    .form-grid, .form-grid.three, .choice-grid, .question-row { grid-template-columns: 1fr; }
}

.member-shell { display: grid; grid-template-columns: 15rem minmax(0,1fr); min-height: calc(100vh - 4.5rem); }
.member-nav { display: flex; flex-direction: column; gap: .25rem; padding: 1.25rem; background: #fff; border-right: 1px solid var(--line); }
.member-nav a { padding: .75rem 1rem; border-radius: .45rem; color: #222; font-weight: 700; text-decoration: none; }
.member-nav a:hover, .member-nav a.active { color: #fff; background: var(--spark-red); }
.member-content { width: min(100%,76rem); padding: clamp(1rem,3vw,2.5rem); }
.member-tag, .eyebrow { color: var(--muted); font-weight: 700; }
.eyebrow { margin: 0; color: var(--spark-red-dark); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.comm-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: .6rem; }
.search-box { flex: 1 1 18rem; }
.search-box input { display: block; width: 100%; margin-top: .25rem; }
.message-list { margin-top: 1rem; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: .65rem; }
.message-row { display: grid; grid-template-columns: 2.75rem minmax(0,1fr) auto; align-items: center; gap: .85rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); color: #222; text-decoration: none; }
.message-row:last-child { border-bottom: 0; }
.message-row:hover { background: var(--soft); }
.message-row span span { display: block; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.message-row.unread { background: #fff7f8; }
.avatar { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--spark-red); color: #fff; font-weight: 800; }
.count { min-width: 1.6rem; padding: .2rem .45rem; border-radius: 999px; background: var(--spark-red); color: #fff; text-align: center; }
.empty-state, .compose-card, .dashboard-card { margin-top: 1rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: .65rem; }
.compose-card { display: grid; gap: .6rem; }
.counter { color: var(--muted); font-size: .85rem; text-align: right; }
.emoji-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.emoji-row button { min-height: 2.5rem; margin: 0; padding: .4rem .65rem; background: #f1f1f1; color: #222; border-radius: .4rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }

@media (max-width: 48rem) {
    .member-shell { display: block; }
    .member-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-right: 0; border-bottom: 1px solid var(--line); }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .dashboard-grid { grid-template-columns: 1fr; }
}

/* Public marketing site */
.public-site { background: var(--white); }
.public-header { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / 96%); border-bottom: 1px solid rgb(0 0 0 / 8%); backdrop-filter: blur(12px); }
.public-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: min(100% - 2rem, 76rem); min-height: 5rem; margin: auto; }
.logo-link { display: block; flex: 0 0 auto; height: 3rem; }
.logo-link img { display: block; width: auto; height: 100%; }
.public-nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); }
.public-nav a { color: #26242b; font-size: .94rem; font-weight: 700; text-decoration: none; }
.public-nav a:hover { color: var(--spark-red); }
.public-nav .nav-cta { padding: .65rem 1.05rem; border-radius: 999px; background: var(--spark-red); color: #fff; }
.public-nav .nav-cta:hover { background: var(--spark-red-dark); color: #fff; }
.nav-toggle { display: none; min-height: auto; margin: 0; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: .4rem; background: #fff; color: #222; }

.hero { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(22rem,.92fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); min-height: 39rem; padding: clamp(3.5rem, 8vw, 7rem) max(1rem, calc((100% - 76rem) / 2)); overflow: hidden; background: radial-gradient(circle at 80% 20%, #ffd9df 0, transparent 32%), linear-gradient(135deg,#fff 35%,#fff3f5); }
.hero h1 { max-width: 48rem; margin: .5rem 0 1.25rem; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.65rem, 6vw, 5.3rem); line-height: .99; letter-spacing: -.045em; }
.hero h1 span { color: var(--spark-red); }
.hero-lead { max-width: 42rem; color: #504d55; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.kicker { margin: 0 0 .5rem; color: var(--spark-red-dark); font-size: .8rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; }
.hero-actions .button-link { margin: 0; }
.text-link { color: var(--spark-red-dark); font-weight: 800; text-decoration: none; }
.hero-note { margin: 1rem 0 0; color: #777078; font-weight: 700; }
.hero-art { position: relative; min-height: 28rem; border-radius: 50% 45% 52% 42%; background: linear-gradient(145deg,#b40014,#6e0010); box-shadow: 0 2rem 5rem rgb(112 0 16 / 25%); }
.connection-card { position: absolute; display: flex; align-items: center; gap: .8rem; width: min(17rem,75%); padding: 1rem; border: 1px solid rgb(255 255 255 / 50%); border-radius: 1rem; background: rgb(255 255 255 / 93%); box-shadow: 0 1rem 2rem rgb(0 0 0 / 18%); }
.connection-card strong,.connection-card small { display: block; }
.connection-card small { color: var(--muted); }
.card-one { top: 17%; left: -8%; }
.card-two { right: -7%; bottom: 16%; }
.profile-dot { display: grid; flex: 0 0 auto; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--navy); color: white; font-size: 1.2rem; font-weight: 900; }
.profile-dot.red { background: var(--spark-red); }
.heart-mark { position: absolute; inset: 50% auto auto 50%; color: #fff; font-size: 8rem; line-height: 1; transform: translate(-50%,-50%); text-shadow: 0 1rem 2rem rgb(0 0 0 / 22%); }
.spark-orbit { position: absolute; color: #fff; font-size: 2rem; }.spark-one { top: 7%; right: 18%; }.spark-two { bottom: 8%; left: 19%; font-size: 1.25rem; }

.trust-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: min(100% - 2rem, 76rem); margin: -2rem auto 0; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 1rem 3rem rgb(0 0 0 / 9%); }
.trust-strip div { padding: 1.35rem 1.5rem; border-right: 1px solid var(--line); }.trust-strip div:last-child { border: 0; }
.trust-strip strong,.trust-strip span { display: block; }.trust-strip span { margin-top: .25rem; color: var(--muted); font-size: .9rem; }
.section { width: min(100% - 2rem, 76rem); margin: auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.center-section { text-align: center; }.center-section h2,.split-feature h2,.belief-band h2,.final-cta h2 { margin: .25rem 0 1rem; font-family: Georgia,serif; font-size: clamp(2rem,4vw,3.6rem); line-height: 1.08; }
.section-lead { width: min(100%,48rem); margin: 0 auto; color: var(--muted); font-size: 1.1rem; }
.steps-grid,.value-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; margin-top: 2.5rem; text-align: left; }
.steps-grid article,.value-grid section { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.steps-grid span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--spark-red); color: #fff; font-weight: 900; }
.steps-grid h3 { margin-bottom: .4rem; }.steps-grid p,.value-grid p { margin-bottom: 0; color: var(--muted); }
.split-feature { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem,6vw,5rem); border-top: 1px solid var(--line); }
.quote-card { margin: 0; padding: clamp(2rem,5vw,3.5rem); border-radius: 1.5rem; background: var(--navy); color: #fff; }.quote-card p { margin: 0 0 1rem; font-family: Georgia,serif; font-size: clamp(1.45rem,3vw,2.2rem); line-height: 1.25; }.quote-card span { color: #d9d7e7; }
.belief-band { padding: clamp(4rem,8vw,7rem) max(1rem,calc((100% - 60rem) / 2)); background: linear-gradient(135deg,#78000d,#c50019); color: #fff; text-align: center; }.belief-band .kicker { color: #ffd4da; }.belief-band p:not(.kicker) { max-width: 52rem; margin: 0 auto 1.5rem; font-size: 1.1rem; }.light-button { background: #fff; color: var(--spark-red-dark); }.light-button:hover { background: var(--rose); color: var(--spark-red-dark); }
.final-cta { padding: clamp(4rem,8vw,7rem) 1rem; text-align: center; background: var(--cream); }.final-cta p { color: var(--muted); }.final-cta .button-link { margin-top: 1rem; }

.page-hero { padding: clamp(4rem,9vw,7rem) max(1rem,calc((100% - 64rem) / 2)); background: linear-gradient(145deg,#fff,#fff0f2); text-align: center; }.page-hero h1 { margin: .35rem 0 1rem; font-family: Georgia,serif; font-size: clamp(2.6rem,6vw,4.8rem); line-height: 1.03; }.page-hero > p:last-child { max-width: 48rem; margin: auto; color: var(--muted); font-size: 1.15rem; }
.content-page { width: min(100% - 2rem, 58rem); margin: auto; padding: clamp(3rem,7vw,6rem) 0; }.content-page h2 { margin: 2.5rem 0 .5rem; font-family: Georgia,serif; font-size: clamp(1.65rem,3vw,2.25rem); }.content-page h2:first-child { margin-top: 0; }.content-page p,.content-page li { color: #454149; font-size: 1.04rem; }.content-page .value-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.content-page .value-grid h2,.content-page .value-grid h3 { margin: 0 0 .5rem; font-family: Georgia,serif; font-size: 1.5rem; }
.founders-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem,6vw,5rem); padding: clamp(3rem,7vw,6rem) max(1rem,calc((100% - 76rem) / 2)); background: var(--cream); }.founders-hero h1 { margin: .35rem 0 1rem; font-family: Georgia,serif; font-size: clamp(2.4rem,5vw,4.5rem); line-height: 1.02; }.founders-hero p:last-child { color: var(--muted); font-size: 1.2rem; }.founders-hero img { width: 100%; max-height: 35rem; object-fit: cover; border-radius: 1.5rem; box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 18%); }
.story-page section { padding: 1.5rem 0; }.story-page section + section { border-top: 1px solid var(--line); }.chapter { color: var(--spark-red-dark); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }.story-page h2 { margin-top: .25rem; }.story-page blockquote { margin: 2.5rem 0; padding: 2rem; border-left: .35rem solid var(--spark-red); background: var(--soft); color: #342e34; font-family: Georgia,serif; font-size: clamp(1.35rem,3vw,2rem); line-height: 1.35; }
.safety-alert { padding: 1.25rem; border: 1px solid #efb8c0; border-radius: .75rem; background: var(--soft); }.check-list { padding-left: 1.4rem; }.check-list li { margin: .55rem 0; }
.article-note { margin-top: 2.5rem; padding: 1rem; border-radius: .5rem; background: #f3f3f3; font-size: .9rem !important; }
.faq-list { width: min(100% - 2rem, 58rem); margin: auto; padding: clamp(3rem,7vw,5rem) 0; }.faq-list details { border-bottom: 1px solid var(--line); }.faq-list summary { position: relative; padding: 1.25rem 2.5rem 1.25rem 0; cursor: pointer; font-size: 1.08rem; font-weight: 800; list-style: none; }.faq-list summary::-webkit-details-marker { display: none; }.faq-list summary::after { position: absolute; top: 1.1rem; right: .25rem; content: '+'; color: var(--spark-red); font-size: 1.5rem; }.faq-list details[open] summary::after { content: '−'; }.faq-list details p { margin: -.35rem 0 1.25rem; color: var(--muted); }
.public-footer { padding: 3.5rem max(1rem,calc((100% - 76rem) / 2)) 1.5rem; background: #17161b; color: #fff; }.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 2rem; }.footer-grid img { width: 11rem; filter: brightness(0) invert(1); }.footer-grid h2 { margin: 0 0 .75rem; font-size: 1rem; }.footer-grid a { display: block; margin: .45rem 0; color: #d7d5dc; text-decoration: none; }.footer-grid p { max-width: 22rem; color: #aaa7b0; }.copyright { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid #343139; color: #98959d; font-size: .85rem; }

@media (max-width: 58rem) {
    .nav-toggle { display: inline-block; }
    .public-nav { position: absolute; top: 5rem; right: 1rem; left: 1rem; display: none; align-items: stretch; flex-direction: column; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; box-shadow: 0 1rem 2rem rgb(0 0 0 / 12%); }
    .public-nav.open { display: flex; }.public-nav a { padding: .55rem; }.public-nav .nav-cta { text-align: center; }
    .hero { grid-template-columns: 1fr; }.hero-art { width: min(100%,32rem); margin: auto; }.trust-strip { grid-template-columns: 1fr; margin-top: 1rem; }.trust-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
    .split-feature,.founders-hero { grid-template-columns: 1fr; }.founders-hero img { max-height: 28rem; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 38rem) {
    .public-header-inner { min-height: 4.25rem; }.logo-link { height: 2.45rem; }.public-nav { top: 4.25rem; }
    .hero { min-height: auto; padding-top: 3rem; }.hero-art { min-height: 21rem; }.connection-card { width: 78%; padding: .75rem; }.card-one { left: -2%; }.card-two { right: -2%; }.heart-mark { font-size: 5.5rem; }
    .steps-grid,.value-grid,.content-page .value-grid,.footer-grid { grid-template-columns: 1fr; }
}
