@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap');

:root {
  --ink: #17231f;
  --ink-soft: #56625d;
  --forest: #173f34;
  --forest-2: #225847;
  --sage: #dce9e1;
  --sage-2: #edf4ef;
  --cream: #f7f5ef;
  --paper: #ffffff;
  --sand: #e9ddc4;
  --sand-dark: #c9ad76;
  --line: #dfe5e1;
  --shadow: 0 24px 65px rgba(24, 45, 37, .12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", sans-serif; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,245,239,.9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(23,63,52,.08); }
.nav { height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Manrope", sans-serif; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--forest); }
.brand-mark svg { width: 26px; height: 26px; fill: var(--sand); }
.brand-mark svg path:last-child { fill: var(--forest); }
.nav-links { display: flex; justify-content: center; gap: 30px; font-size: .94rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--forest); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.text-button { border: 0; background: none; color: var(--ink); cursor: pointer; padding: 10px 12px; }
.menu-button { display: none; border: 0; background: none; padding: 10px; }
.menu-button span { display: block; width: 22px; height: 2px; margin: 4px 0; background: var(--ink); }

.button { min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 42px; padding-inline: 16px; font-size: .92rem; }
.button-primary { background: var(--forest); color: #fff; }
.button-primary:hover { background: var(--forest-2); }
.button-accent { background: var(--sand); color: var(--forest); }
.button-accent:hover { background: #f0e5cf; }
.button-secondary { background: var(--paper); color: var(--forest); border-color: var(--line); }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); }

.hero { padding: 28px 0 78px; }
.hero-panel { min-height: 650px; padding: 72px 64px; border-radius: 34px; background: var(--forest); color: #fff; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 58px; overflow: hidden; position: relative; }
.hero-panel::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: rgba(233,221,196,.08); left: -180px; top: -210px; }
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.eyebrow, .kicker { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; }
.eyebrow { color: var(--sand); margin-bottom: 22px; }
.hero h1 { margin: 0; max-width: 580px; font: 700 clamp(3.25rem, 6.3vw, 5.65rem)/.98 "Manrope", sans-serif; letter-spacing: -.065em; }
.hero-copy > p { max-width: 530px; color: rgba(255,255,255,.72); font-size: 1.1rem; line-height: 1.75; margin: 28px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 25px; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.66); font-size: .88rem; }
.hero-note span { color: var(--sand); }
.hero-visual { background: var(--paper); border-radius: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.28); overflow: hidden; transform: rotate(1deg); }
.visual-topbar { height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-size: .86rem; font-weight: 700; }
.preview-pill { color: var(--forest); padding: 7px 10px; border-radius: 999px; background: var(--sage-2); font-size: .75rem; }
.comparison { aspect-ratio: 4/3; position: relative; overflow: hidden; background: #ddd; }
.comparison img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparison-after { position: absolute; inset: 0; width: 52%; overflow: hidden; }
.comparison-after img { width: calc(100% / .52); max-width: none; }
.comparison-line { position: absolute; top: 0; bottom: 0; left: 52%; width: 2px; background: rgba(255,255,255,.9); transform: translateX(-1px); }
.comparison-handle { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--forest); box-shadow: 0 8px 24px rgba(0,0,0,.2); font-weight: 700; }
.comparison-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.compare-tag { position: absolute; bottom: 16px; z-index: 2; padding: 7px 10px; border-radius: 8px; color: #fff; background: rgba(18,27,24,.72); backdrop-filter: blur(10px); font-size: .72rem; font-weight: 700; }
.compare-before { left: 16px; }
.compare-after { right: 16px; }

.section { padding: 104px 0; }
.section-intro { max-width: 680px; }
.compact-intro { text-align: center; margin: 0 auto 48px; }
.left-intro { max-width: 470px; }
.kicker { color: var(--forest-2); margin-bottom: 14px; }
.kicker-light { color: var(--sand); }
h2 { margin: 0; font: 700 clamp(2.25rem, 4.2vw, 3.8rem)/1.05 "Manrope", sans-serif; letter-spacing: -.05em; }
.section-intro p { color: var(--ink-soft); font-size: 1.03rem; line-height: 1.7; }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.solution-card { min-height: 270px; padding: 30px; border-radius: var(--radius-md); border: 1px solid var(--line); background: rgba(255,255,255,.7); display: flex; flex-direction: column; align-items: flex-start; }
.solution-card h3 { margin: 20px 0 8px; font: 700 1.25rem "Manrope", sans-serif; }
.solution-card p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.solution-card a { margin-top: auto; padding-top: 24px; color: var(--forest-2); font-weight: 700; }
.solution-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--sage); display: grid; place-items: center; color: var(--forest); font-size: 1.3rem; }
.featured-solution { background: var(--forest); color: #fff; border-color: var(--forest); box-shadow: var(--shadow); }
.featured-solution p { color: rgba(255,255,255,.7); }
.featured-solution a { color: var(--sand); }
.featured-solution .solution-icon { background: rgba(255,255,255,.1); color: var(--sand); }

.muted-section { background: var(--sage-2); }
.simple-process { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.process-list { display: grid; gap: 12px; }
.process-list article { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: 16px; background: rgba(255,255,255,.72); border: 1px solid rgba(23,63,52,.08); }
.process-list article > span { color: var(--forest-2); font-weight: 700; font-size: .8rem; }
.process-list h3 { margin: 0 0 4px; font: 700 1.03rem "Manrope", sans-serif; }
.process-list p { margin: 0; color: var(--ink-soft); }

.studio-section { padding: 104px 0; background: var(--forest); color: #fff; }
.studio-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.studio-heading p { color: rgba(255,255,255,.64); margin-bottom: 0; }
.credit-chip { display: flex; align-items: baseline; gap: 8px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.06); }
.credit-chip strong { color: var(--sand); font-size: 1.25rem; }
.credit-chip span { color: rgba(255,255,255,.58); font-size: .78rem; }
.studio-app { min-height: 650px; display: grid; grid-template-columns: 340px 1fr; background: #f5f6f3; border-radius: 24px; overflow: hidden; box-shadow: 0 35px 80px rgba(0,0,0,.24); color: var(--ink); }
.studio-sidebar { padding: 24px; border-right: 1px solid var(--line); overflow: auto; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #e8ece8; margin-bottom: 24px; }
.mode-switch button { border: 0; padding: 10px 8px; border-radius: 9px; background: transparent; color: var(--ink-soft); font-weight: 700; cursor: pointer; }
.mode-switch button.active { background: #fff; color: var(--forest); box-shadow: 0 4px 12px rgba(18,43,34,.08); }
.project-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.project-row small { display: block; color: #8a938f; font-size: .68rem; letter-spacing: .12em; margin-bottom: 4px; }
.project-row strong { font-size: .98rem; }
.icon-button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.upload-box { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; }
.upload-box input { display: none; }
.upload-box > span:nth-child(3) { min-width: 0; }
.upload-box strong, .upload-box small { display: block; }
.upload-box small { margin-top: 3px; color: #8a938f; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 210px; }
.upload-symbol { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; background: var(--sage-2); color: var(--forest); font-weight: 700; }
.control-group { margin-top: 22px; }
.control-label { display: flex; justify-content: space-between; font-size: .79rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6f7874; }
input[type="range"] { accent-color: var(--forest-2); }
.control-group input { width: 100%; margin-top: 12px; }
.toggle-row { margin: 22px 0; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 11px; cursor: pointer; }
.toggle-row input { display: none; }
.toggle-row > span { width: 40px; height: 22px; border-radius: 999px; background: #ccd3cf; position: relative; }
.toggle-row > span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle-row input:checked + span { background: var(--forest-2); }
.toggle-row input:checked + span::after { transform: translateX(18px); }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { font-size: .83rem; }
.toggle-row small { margin-top: 3px; color: #8a938f; font-size: .72rem; }
.quality-select { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quality-select button { border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 11px; cursor: pointer; }
.quality-select button.active { border-color: var(--forest-2); box-shadow: 0 0 0 2px rgba(34,88,71,.1); }
.quality-select strong, .quality-select small { display: block; }
.quality-select small { margin-top: 3px; color: #8a938f; }
.generate-button { width: 100%; margin-top: 14px; background: var(--forest); color: #fff; }
.canvas-panel { display: flex; flex-direction: column; min-width: 0; }
.canvas-toolbar { height: 62px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; }
.canvas-toolbar > span { font-size: .82rem; color: #66716c; }
.canvas-toolbar i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #48a77d; }
.canvas-toolbar button { padding: 8px 12px; margin-left: 7px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; }
.canvas-stage { flex: 1; position: relative; display: grid; place-items: center; padding: 28px; background: #e8ece9; overflow: hidden; }
#designCanvas { width: 100%; max-height: 100%; aspect-ratio: 1200/760; border-radius: 15px; background: #ddd; box-shadow: 0 18px 45px rgba(29,49,42,.16); touch-action: none; cursor: grab; }
#designCanvas:active { cursor: grabbing; }
.drag-tip { position: absolute; left: 50%; bottom: 42px; transform: translateX(-50%); padding: 8px 11px; border-radius: 8px; background: rgba(23,35,31,.82); color: #fff; font-size: .75rem; pointer-events: none; transition: opacity .2s; }
.loading-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(238,242,239,.88); backdrop-filter: blur(7px); }
.loading-overlay[hidden] { display: none; }
.loading-overlay p { margin: 6px 0 0; color: var(--ink-soft); }
.spinner { width: 38px; height: 38px; margin-bottom: 14px; border: 3px solid #cfdad4; border-top-color: var(--forest); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pricing-section { background: #fff; }
.pricing-tabs { width: fit-content; max-width: 100%; margin: 0 auto 34px; padding: 5px; display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); overflow-x: auto; }
.pricing-tabs button { white-space: nowrap; border: 0; border-radius: 10px; padding: 11px 18px; background: transparent; color: var(--ink-soft); font-weight: 700; cursor: pointer; }
.pricing-tabs button.active { background: var(--forest); color: #fff; }
.pricing-panel { display: none; }
.pricing-panel.active { display: block; }
.price-grid { display: grid; gap: 16px; align-items: stretch; }
.three-column { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: auto; }
.four-column { grid-template-columns: repeat(4, 1fr); }
.price-card { position: relative; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; display: flex; flex-direction: column; }
.price-card.popular { border: 2px solid var(--forest); box-shadow: var(--shadow); }
.popular-tag { position: absolute; top: -13px; left: 20px; padding: 6px 10px; border-radius: 999px; background: var(--forest); color: #fff; font-size: .68rem; font-weight: 700; }
.plan-name { font-weight: 700; color: var(--forest-2); }
.price { min-height: 65px; margin: 18px 0 8px; display: flex; align-items: baseline; gap: 7px; }
.price strong { font: 700 clamp(2rem, 3.5vw, 2.9rem) "Manrope", sans-serif; letter-spacing: -.05em; }
.price small { color: var(--ink-soft); }
.price-card > p { color: var(--ink-soft); min-height: 48px; }
.price-card ul { margin: 18px 0 26px; padding: 0; list-style: none; color: var(--ink-soft); }
.price-card li { margin: 11px 0; }
.price-card li::before { content: "✓"; margin-right: 8px; color: var(--forest-2); font-weight: 700; }
.price-card .button { width: 100%; margin-top: auto; }
.business-summary { margin-bottom: 24px; padding: 20px 22px; border-radius: 15px; background: var(--sage-2); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.business-summary strong, .business-summary span { display: block; }
.business-summary span { color: var(--ink-soft); margin-top: 5px; }
.summary-badge { flex: 0 0 auto; padding: 8px 11px; border-radius: 999px; background: #fff; color: var(--forest) !important; font-size: .74rem; font-weight: 700; }
.realtor-features { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 28px; color: var(--ink-soft); font-size: .88rem; }
.pricing-note { margin: 24px 0 0; text-align: center; color: #89928e; font-size: .78rem; }

.cta-section { padding: 0 0 90px; background: #fff; }
.cta-card { min-height: 260px; padding: 52px 56px; border-radius: 28px; background: var(--forest); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-card h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); }
.cta-card p { color: rgba(255,255,255,.65); }
.cta-card form { display: flex; gap: 8px; min-width: min(430px, 100%); }
.cta-card input { min-width: 0; flex: 1; height: 50px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; padding: 0 15px; background: rgba(255,255,255,.1); color: #fff; outline: none; }
.cta-card input::placeholder { color: rgba(255,255,255,.55); }
.footer { padding: 30px 0; background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--ink-soft); font-size: .82rem; }
.footer .brand { color: var(--ink); }
.footer .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.footer .brand-mark svg { width: 22px; height: 22px; }

.modal { width: min(430px, calc(100% - 28px)); border: 0; border-radius: 22px; padding: 36px; color: var(--ink); box-shadow: 0 30px 90px rgba(14,33,26,.3); }
.modal::backdrop { background: rgba(11,24,20,.55); backdrop-filter: blur(6px); }
.modal-close { position: absolute; right: 14px; top: 12px; border: 0; background: none; font-size: 1.7rem; cursor: pointer; }
.modal-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--sage); color: var(--forest); }
.modal h2 { margin: 20px 0 8px; font-size: 2rem; }
.modal p { color: var(--ink-soft); }
.modal form { display: grid; gap: 10px; margin-top: 22px; }
.modal input { height: 48px; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: 360px; padding: 13px 16px; border-radius: 11px; background: var(--ink); color: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .hero-panel { grid-template-columns: 1fr; padding: 60px 46px; }
  .hero-copy { max-width: 700px; }
  .hero-visual { max-width: 720px; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: 210px; }
  .simple-process { grid-template-columns: 1fr; gap: 36px; }
  .studio-app { grid-template-columns: 300px 1fr; }
  .four-column { grid-template-columns: repeat(2, 1fr); }
  .cta-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1180px); }
  .nav { grid-template-columns: auto auto; justify-content: space-between; }
  .menu-button { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 12px; right: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); flex-direction: column; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px; }
  .nav-actions .text-button { display: none; }
  .hero { padding-top: 12px; padding-bottom: 56px; }
  .hero-panel { min-height: auto; padding: 42px 24px 24px; border-radius: 25px; gap: 40px; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .hero-copy > p { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-visual { transform: none; }
  .section, .studio-section { padding: 76px 0; }
  .studio-heading { align-items: flex-start; flex-direction: column; }
  .studio-app { grid-template-columns: 1fr; }
  .studio-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .canvas-stage { min-height: 360px; padding: 14px; }
  .three-column, .four-column { grid-template-columns: 1fr; }
  .business-summary { align-items: flex-start; flex-direction: column; }
  .cta-card { padding: 42px 24px; }
  .cta-card form { min-width: 0; width: 100%; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .brand > span:last-child { display: none; }
  .visual-topbar { height: 46px; }
  .comparison { aspect-ratio: 1/1; }
  .price-card { padding: 24px; }
}
