:root {
  --ink: #251b24;
  --muted: #6d625f;
  --paper: #fffaf5;
  --paper-deep: #f3e9df;
  --plum: #4f273c;
  --plum-deep: #351827;
  --rose: #b97867;
  --gold: #d7a24e;
  --sea: #6f7d68;
  --walnut: #563d34;
  --charcoal: #302b2c;
  --line: rgba(79, 39, 60, 0.14);
  --shadow: 0 24px 70px rgba(66, 31, 48, 0.13);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(213,169,95,.16), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(111,125,104,.14), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 99; background: white; padding: .75rem 1rem; border-radius: 12px; }

.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255,250,245,.82);
  border-bottom: 1px solid rgba(79,39,60,.08);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.28rem; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; color: var(--plum); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 650; font-size: .94rem; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--plum); }
.nav-cta { padding: .72rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.65); }

.hero { padding: 88px 0 68px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2.5rem, 6vw, 6.5rem); align-items: center; }
.eyebrow { margin: 0 0 1.1rem; color: var(--sea); font-size: .82rem; text-transform: uppercase; letter-spacing: .19em; font-weight: 800; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.06; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(3.1rem, 7vw, 6.4rem); max-width: 11ch; font-weight: 500; }
h1 em { color: var(--plum); font-style: italic; }
.hero-copy { margin: 1.6rem 0 0; max-width: 620px; color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.26rem); }
.actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 2rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: .55rem; padding: .8rem 1.2rem; border-radius: 999px; text-decoration: none; border: 1px solid transparent; font-weight: 760; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--plum); box-shadow: 0 14px 32px rgba(79,39,60,.24); }
.button-secondary { color: var(--plum); border-color: var(--line); background: rgba(255,255,255,.65); }

.keepsake { position: relative; min-height: 520px; display: grid; place-items: center; }
.keepsake::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 48% 52% 60% 40%; background: linear-gradient(145deg, rgba(185,120,103,.3), rgba(215,162,78,.14) 58%, rgba(111,125,104,.22)); transform: rotate(-8deg); }
.memory-card { position: relative; width: min(390px, 90%); padding: 2.1rem; border-radius: 34px; background: rgba(255,255,255,.86); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.8); transform: rotate(2deg); }
.memory-card::before { content: ""; display: block; width: 54px; height: 5px; border-radius: 99px; background: var(--gold); margin-bottom: 2rem; }
.memory-card .date { color: var(--sea); font-weight: 750; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.memory-card blockquote { margin: 1.2rem 0 1.6rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.24; }
.memory-card .small { color: var(--muted); font-size: .93rem; }
.beacon { position: absolute; right: 0; bottom: 1.4rem; width: 230px; padding: 1rem 1.1rem; border-radius: 18px; background: var(--plum-deep); color: white; box-shadow: 0 18px 50px rgba(53,24,39,.28); }
.beacon .note-label { color: var(--gold); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.beacon strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; margin-top: .2rem; }
.beacon span { display: block; color: rgba(255,255,255,.7); font-size: .82rem; margin-top: .25rem; }
.message-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .78rem; }
.sent-check { color: var(--sea); font-weight: 800; }

.section { padding: 96px 0; }
.section-soft { background: rgba(247,237,229,.62); border-block: 1px solid rgba(79,39,60,.07); }
.section-heading { max-width: 720px; margin-bottom: 3.2rem; }
.section-heading h2 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.4rem); font-weight: 500; }
.section-heading p { color: var(--muted); font-size: 1.08rem; margin: 1.2rem 0 0; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feature { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.64); min-height: 250px; }
.feature-number { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper-deep); color: var(--plum); font-family: Georgia, serif; font-weight: 700; }
.feature h3 { margin: 2.4rem 0 .7rem; font-size: 1.65rem; }
.feature p { margin: 0; color: var(--muted); }
.feature-wide { grid-column: 1 / -1; min-height: auto; display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; }
.feature-wide h3 { margin: 0 0 .45rem; }

.privacy-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; padding: clamp(2rem, 5vw, 4.5rem); color: white; background: var(--plum-deep); border-radius: 38px; box-shadow: var(--shadow); }
.privacy-panel h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 500; }
.privacy-panel p { color: rgba(255,255,255,.72); }
.privacy-list { display: grid; gap: .85rem; }
.privacy-item { padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.05); }
.privacy-item strong { display: block; margin-bottom: .15rem; }
.privacy-item span { color: rgba(255,255,255,.68); font-size: .94rem; }

.beta-wrap { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.beta-inline { margin: 0 0 4rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15,10,18,.42); }
.beta-wrap h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.7rem); font-weight: 500; }
.beta-wrap > div > p { color: var(--muted); }
.beta-cards { display: grid; gap: 1rem; }
.beta-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.25rem; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.7); }
.platform-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--paper-deep); color: var(--plum); font-weight: 900; }
.beta-card strong { display: block; }
.beta-card span { display: block; color: var(--muted); font-size: .9rem; }
.status { padding: .5rem .75rem; color: var(--sea); border: 1px solid rgba(81,118,122,.2); border-radius: 999px; background: rgba(81,118,122,.08); font-size: .82rem; font-weight: 750; white-space: nowrap; }
.beta-note { margin: .5rem .25rem 0; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.beta-request { margin: 1.5rem 0 4rem; display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.5rem; padding: clamp(1.4rem,4vw,3rem); border: 1px solid rgba(202,123,78,.28); border-radius: 28px; background: linear-gradient(145deg,rgba(42,24,38,.94),rgba(25,16,27,.96)); box-shadow: 0 28px 80px rgba(0,0,0,.22); }
.beta-request-intro h2 { margin: .4rem 0 1rem; font-family: Georgia,"Times New Roman",serif; font-size: clamp(2rem,4vw,3.2rem); font-weight: 500; color: var(--cream); }
.beta-request-intro > p:last-of-type { color: var(--muted); line-height: 1.75; }
.beta-expectations { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: .8rem; color: var(--muted); font-size: .94rem; }
.beta-expectations li { position: relative; padding-left: 1.55rem; line-height: 1.55; }
.beta-expectations li::before { content: '✦'; position: absolute; left: 0; top: .03rem; color: var(--copper-light); font-size: .8rem; }
.beta-form { display: grid; gap: 1.15rem; padding: clamp(1.1rem,3vw,1.7rem); border: 1px solid rgba(244,224,197,.12); border-radius: 21px; background: rgba(13,9,15,.42); }
.beta-form label,.beta-form legend { font-size: .9rem; font-weight: 650; color: var(--cream); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.beta-form input[type="text"],.beta-form input[type="email"],.beta-form textarea { width: 100%; margin-top: .48rem; padding: .82rem .9rem; border: 1px solid rgba(244,224,197,.2); border-radius: 12px; background: rgba(255,255,255,.045); color: var(--cream); font: inherit; line-height: 1.45; transition: border-color .2s,box-shadow .2s,background .2s; }
.beta-form textarea { resize: vertical; min-height: 7rem; }
.beta-form input:focus,.beta-form textarea:focus { outline: none; border-color: var(--copper-light); background: rgba(255,255,255,.07); box-shadow: 0 0 0 3px rgba(202,123,78,.15); }
.beta-form fieldset { margin: 0; padding: 0; border: 0; }
.device-options { display: grid; grid-template-columns: repeat(3,1fr); gap: .65rem; margin-top: .55rem; }
.device-options label { position: relative; cursor: pointer; }
.device-options input { position: absolute; opacity: 0; pointer-events: none; }
.device-options span { display: flex; min-height: 48px; align-items: center; justify-content: center; padding: .65rem; border: 1px solid rgba(244,224,197,.18); border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.035); transition: .2s; }
.device-options input:checked + span { border-color: var(--copper-light); color: var(--cream); background: rgba(157,75,39,.25); box-shadow: 0 0 0 2px rgba(202,123,78,.1); }
.device-options input:focus-visible + span { outline: 2px solid var(--copper-light); outline-offset: 2px; }
.optional { color: var(--muted); font-size: .8rem; font-weight: 400; }
.consent { display: flex; align-items: flex-start; gap: .7rem; color: var(--muted)!important; font-weight: 400!important; line-height: 1.5; }
.consent input { width: 1rem; height: 1rem; margin: .15rem 0 0; accent-color: var(--copper); }
.beta-form .button { border: 0; cursor: pointer; justify-self: start; font: inherit; font-weight: 700; }
.beta-form .button:disabled { cursor: wait; opacity: .72; }
.form-help { margin: -.35rem 0 0; color: var(--muted); font-size: .83rem; line-height: 1.5; }
.form-success { color: #efbd83; }
.form-error { color: #f0a5a5; }

.quote-section { text-align: center; padding: 75px 0 110px; }
.quote-section p { max-width: 850px; margin: 0 auto; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 4.7rem); line-height: 1.1; letter-spacing: -.04em; }
.quote-section span { display: block; margin-top: 1.5rem; color: var(--muted); font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; }

.site-footer { padding: 3rem 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.copyright { color: var(--muted); font-size: .88rem; }

.subpage { min-height: 70vh; padding: 85px 0 110px; }
.prose { width: min(760px, 100%); }
.prose h1 { font-size: clamp(2.8rem, 6vw, 5rem); max-width: none; }
.prose h2 { margin-top: 2.4rem; font-size: 1.65rem; }
.prose p, .prose li { color: var(--muted); }
.notice { margin: 2rem 0; padding: 1.25rem 1.4rem; border-left: 4px solid var(--gold); background: var(--paper-deep); border-radius: 0 16px 16px 0; }

@media (max-width: 820px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding-top: 62px; }
  .hero-grid, .privacy-panel, .beta-wrap { grid-template-columns: 1fr; }
  .beta-request { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .keepsake { min-height: 440px; }
  .beacon { right: 3%; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; grid-template-columns: 1fr; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 28px, 1160px); }
  .hero { padding-top: 44px; }
  h1 { font-size: clamp(2.85rem, 15vw, 4.3rem); }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .keepsake::before { width: 330px; height: 330px; }
  .memory-card { padding: 1.5rem; }
  .beacon { position: relative; right: auto; bottom: auto; margin: -1rem 0 0 auto; }
  .section { padding: 72px 0; }
  .beta-card { grid-template-columns: auto 1fr; }
  .status { grid-column: 2; justify-self: start; }
  .device-options { grid-template-columns: 1fr; }
  .beta-form .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* MendHarbor app-aligned night theme */
:root {
  --ink: #f6e8d2;
  --muted: #b9a697;
  --paper: #0f0a12;
  --paper-deep: #1c111c;
  --plum: #d08a60;
  --plum-deep: #140c15;
  --rose: #b9694f;
  --gold: #efb36f;
  --sea: #7f8067;
  --walnut: #5a3025;
  --charcoal: #171117;
  --line: rgba(216, 139, 93, 0.24);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.44);
}

body {
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(208,138,96,.09), transparent 28rem),
    radial-gradient(circle at 88% 24%, rgba(111,80,104,.13), transparent 32rem),
    radial-gradient(circle, rgba(239,179,111,.42) 0 1px, transparent 1.25px);
  background-size: auto, auto, 88px 88px;
  background-position: center, center, 17px 29px;
}

.site-header {
  background: rgba(15,10,18,.84);
  border-bottom-color: rgba(208,138,96,.2);
}

.brand { color: #e6a277; }
.brand-mark { color: #9c573d; filter: drop-shadow(0 0 12px rgba(239,179,111,.18)); }
.official-brand { gap: .35rem; height: 62px; overflow: visible; }
.official-logo-icon, .official-logo-wordmark { position: relative; display: block; overflow: hidden; flex: none; }
.official-logo-icon { width: 50px; height: 50px; }
.official-logo-icon img { position: absolute; width: 92px; max-width: none; left: -22px; top: -10px; }
.official-logo-wordmark { width: 184px; height: 39px; }
.official-logo-wordmark img { position: absolute; width: 247px; max-width: none; left: -34px; top: -158px; }
.nav-links a { color: #bda99d; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold); }
.nav-cta { background: rgba(74,39,47,.52); border-color: rgba(208,138,96,.32); }

.hero { background: linear-gradient(180deg, rgba(15,10,18,.2), rgba(31,17,28,.55)); }
.eyebrow { color: #e6a277; }
h1 em { color: #e5a174; text-shadow: 0 0 30px rgba(229,161,116,.15); }
.hero-copy, .section-heading p, .beta-wrap > div > p, .prose p, .prose li { color: var(--muted); }

.button-primary {
  color: #fff7ed;
  background: linear-gradient(180deg, #a95732, #73351f);
  border-color: #d98a54;
  box-shadow: 0 14px 38px rgba(115,53,31,.36), inset 0 1px rgba(255,255,255,.15);
}
.button-secondary { color: #e6a277; border-color: rgba(208,138,96,.52); background: rgba(32,17,29,.72); }

.keepsake::before {
  background: radial-gradient(circle at 50% 42%, rgba(230,153,94,.24), rgba(86,42,42,.28) 38%, rgba(24,14,24,.05) 69%);
  filter: blur(2px);
}
.memory-card {
  background: linear-gradient(145deg, rgba(67,35,38,.95), rgba(38,20,31,.98));
  border-color: rgba(208,138,96,.28);
  box-shadow: 0 30px 90px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.035);
}
.memory-card::before { background: linear-gradient(90deg, #9c5439, #efb36f); }
.memory-card .date { color: #e5a174; }
.beacon { background: linear-gradient(145deg, #57291f, #2a1520); border: 1px solid rgba(229,161,116,.32); }

.section-soft { background: rgba(25,14,24,.86); border-block-color: rgba(208,138,96,.15); }
.feature {
  border-color: rgba(208,138,96,.23);
  background: linear-gradient(145deg, rgba(39,22,34,.94), rgba(27,16,27,.96));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.feature-number { background: #4c281f; color: #efb36f; border: 1px solid rgba(208,138,96,.35); }
.feature p { color: var(--muted); }

.privacy-panel {
  color: var(--ink);
  background: linear-gradient(135deg, #4a261f, #271522 55%, #1b111d);
  border: 1px solid rgba(229,161,116,.26);
}
.privacy-panel p { color: #c7b0a1; }
.privacy-item { border-color: rgba(229,161,116,.17); background: rgba(12,8,13,.22); }
.privacy-item span { color: #c1aa9b; }

.beta-card { border-color: rgba(208,138,96,.25); background: rgba(35,20,32,.88); }
.platform-icon { background: #4b281f; color: #efb36f; }
.beta-card span, .copyright, .footer-links a { color: var(--muted); }
.status { color: #e5a174; border-color: rgba(208,138,96,.26); background: rgba(112,54,36,.22); }

.quote-section { background: radial-gradient(circle at 50% 50%, rgba(100,49,39,.2), transparent 45rem); }
.site-footer { background: #0c080e; border-top-color: rgba(208,138,96,.18); }
.notice { background: #281720; border-left-color: var(--gold); }

@media (max-width: 520px) {
  .official-logo-wordmark { width: 145px; height: 31px; }
  .official-logo-wordmark img { width: 195px; left: -27px; top: -125px; }
}
