/* House of Mills Design: shared look (home page + account) */
:root {
  --brand: #0b7a75; --brand-dark: #085e5a; --brand-soft: #e3f3f1; --mint: #5eead4;
  --ink: #142030; --ink-2: #4a5565; --ink-3: #7a8494; --line: #e3e7ec; --bg: #f6f8fa; --card: #fff;
  --green: #16a34a; --amber: #d97706; --red: #dc2626; --night: #0b1626;
  --radius: 18px; --shadow: 0 1px 0 rgba(15,27,45,.04), 0 12px 32px rgba(15,27,45,.07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--card); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.test-bar { background: #fff7e6; color: #8a5300; text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font: inherit; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, #0e958e, var(--brand) 55%, #0a6460); color: #fff; box-shadow: 0 10px 24px rgba(11,122,117,.32); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(11,122,117,.42); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-white { background: #fff; color: var(--brand); box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 16px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }

/* Header */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(227,231,236,.8); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.3px; white-space: nowrap; }
.logo .mark { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--brand-soft), #fff); box-shadow: inset 0 0 0 1px #cde9e5; display: grid; place-items: center; font-size: 19px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links a:not(.btn):not(.nav-signin) { display: none; } .nav-links { gap: 14px; } .nav-links .btn { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #10a39a 0%, transparent 60%), linear-gradient(160deg, #0b7a75 0%, #0a4f63 55%, var(--night) 100%); }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; }
.g1 { width: 380px; height: 380px; background: #22d3c5; right: -80px; top: 40px; animation: drift 14s ease-in-out infinite alternate; }
.g2 { width: 300px; height: 300px; background: #6366f1; left: -120px; bottom: -120px; opacity: .25; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-40px, 30px); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); margin-bottom: 18px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(94,234,212,.25); }
.hero h1 { font-size: 56px; line-height: 1.04; letter-spacing: -1.8px; margin: 0 0 18px; font-weight: 800; }
.grad { background: linear-gradient(90deg, #99f6e4, #5eead4 40%, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: rgba(255,255,255,.86); margin: 0 0 28px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: rgba(255,255,255,.8); }
.hero-points b { color: #fff; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 56px; gap: 36px; } .hero h1 { font-size: 40px; letter-spacing: -1.1px; } .lead { font-size: 17.5px; } }

/* Hero art: design viewer illustration (not a real case) */
.hero-art { position: relative; max-width: 420px; width: 100%; margin: 0 auto; }
.viewer { background: rgba(255,255,255,.96); color: var(--ink); border-radius: 26px; padding: 16px; box-shadow: 0 40px 80px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.6); transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); animation: hover 6s ease-in-out infinite; }
@keyframes hover { 50% { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(-8px); } }
.viewer-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 10px; }
.case { font-weight: 800; letter-spacing: .3px; color: var(--ink-2); }
.chip { font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 999px; }
.chip.ready { background: #dcfce7; color: #15803d; }
.stage { position: relative; height: 230px; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #f4f8fa 0%, #d9e5eb 60%, #c6d6de 100%); display: grid; place-items: center; }
.grid-floor { position: absolute; left: -20%; right: -20%; bottom: -30%; height: 70%; background-image: linear-gradient(rgba(11,122,117,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(11,122,117,.12) 1px, transparent 1px); background-size: 26px 26px; transform: perspective(300px) rotateX(60deg); }
.crown { position: relative; width: 170px; margin-top: 6px; filter: drop-shadow(0 18px 18px rgba(11,79,99,.25)); animation: spin 9s ease-in-out infinite; }
@keyframes spin { 0%,100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.03); } }
.crown-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanline { position: absolute; left: 0; right: 0; height: 40px; background: linear-gradient(180deg, transparent, rgba(94,234,212,.35), transparent); animation: scan 3.6s ease-in-out infinite; }
@keyframes scan { 0% { top: -40px; } 100% { top: 100%; } }
.viewer-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.viewer-meta div { background: var(--bg); border-radius: 12px; padding: 8px 10px; }
.viewer-meta small { display: block; font-size: 11px; color: var(--ink-3); }
.viewer-meta b { font-size: 15px; }
.viewer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fake-btn { display: grid; place-items: center; height: 44px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.fake-btn.approve { background: var(--brand); color: #fff; }
.fake-btn.change { background: var(--bg); color: var(--ink-2); }
.float-card { position: absolute; background: #fff; color: var(--ink); font-size: 13px; padding: 10px 14px; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.25); white-space: nowrap; }
.fc1 { left: -28px; top: 64px; animation: bob 5s ease-in-out infinite; }
.fc2 { right: -18px; bottom: -18px; animation: bob 5s ease-in-out infinite 1.4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 520px) { .fc1, .fc2 { display: none; } .viewer { transform: none; animation: none; } }

/* Trust strip */
.strip { background: var(--night); color: #fff; padding: 22px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.strip-grid div { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; }
.s-ic { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 17px; }
.strip-grid b { font-size: 14.5px; }
.strip-grid small { color: rgba(255,255,255,.62); font-size: 12.5px; line-height: 1.35; }
@media (max-width: 860px) { .strip-grid { grid-template-columns: 1fr 1fr; } }

/* Sections */
.sec { padding: 84px 0; }
.sec.alt { background: var(--bg); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
h2 { font-size: 38px; letter-spacing: -1px; line-height: 1.12; margin: 0 0 14px; }
.sub { color: var(--ink-2); font-size: 17px; max-width: 640px; margin: 0 0 28px; }
@media (max-width: 720px) { .sec { padding: 60px 0; } h2 { font-size: 29px; letter-spacing: -.6px; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; counter-reset: s; }
.step { position: relative; background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px #cde9e5, 0 20px 40px rgba(15,27,45,.1); }
.num { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, #14b8a6, var(--brand)); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 8px 18px rgba(11,122,117,.3); }
.step h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.2px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chips span { padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 15px; }
.mats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mats div { background: #fff; border-radius: 16px; padding: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.mats b { display: block; font-size: 16px; }
.mats small { color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 760px) { .mats { grid-template-columns: 1fr 1fr; } }

.price-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 8px 0 28px; }
.checks li { padding: 8px 0 8px 36px; position: relative; font-size: 16.5px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 25px; height: 25px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.price-card { border-radius: 26px; padding: 28px; color: #fff; background: radial-gradient(400px 200px at 100% 0%, rgba(94,234,212,.35), transparent 60%), linear-gradient(160deg, #0b7a75, #0a4f63 70%, var(--night)); box-shadow: 0 30px 60px rgba(11,79,99,.3); }
.price-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.15); }
.big { font-size: 76px; font-weight: 800; letter-spacing: -3px; line-height: 1; margin: 18px 0 14px; }
.price-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 15px; color: rgba(255,255,255,.8); }
.price-row b { color: #fff; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.door { display: block; padding: 28px; border-radius: 22px; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); transition: transform .2s, box-shadow .2s; }
.door:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--brand), 0 22px 44px rgba(15,27,45,.12); }
.door-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--brand-soft); margin-bottom: 14px; }
.door h3 { margin: 0 0 6px; font-size: 21px; }
.door p { margin: 0 0 16px; color: var(--ink-2); }
.door-go { font-weight: 700; color: var(--brand); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

.faq { max-width: 780px; }
details { background: var(--card); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 10px; transition: box-shadow .2s; }
details[open] { box-shadow: inset 0 0 0 1.5px #bfe3de, var(--shadow); }
summary { cursor: pointer; padding: 19px 20px; font-weight: 700; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }

.cta { text-align: center; color: #fff; padding: 84px 0; background: radial-gradient(700px 300px at 50% 0%, rgba(94,234,212,.3), transparent 70%), linear-gradient(160deg, #0b7a75, #0a4f63); }
.cta h2 { color: #fff; margin-bottom: 26px; }

footer { background: var(--night); color: rgba(255,255,255,.65); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer a { color: rgba(255,255,255,.85); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Sticky button on phones */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.95) 35%); transform: translateY(110%); transition: transform .3s ease; }
  .dock.show { transform: none; }
  .dock .btn { width: 100%; min-height: 54px; font-size: 16.5px; }
  footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

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