/* Porchly website — same palette and type as the app (light only, like the app). */
:root {
  --ink: #1F1A17;
  --ink-2: #5E6066;
  --ink-3: #6B6E75;
  --line: #E4E5E8;
  --line-2: #D5D7DC;
  --fill: #F2F3F5;
  --fill-2: #F7F8F9;
  --brand: #C4532F;
  --brand-deep: #A8411F;
  --brand-soft: #FBE4DC;
  --accent: #F2C14E;
  --accent-soft: #FFF1C7;
  --accent-ink: #6E5200;
  --teal: #0F4C4A;
  --teal-soft: #DCEEEC;
  --blue: #24508F;
  --blue-soft: #DDE7F7;
  --green: #22663D;
  --green-soft: #DDF0E2;
  --danger: #B42318;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1120px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
.h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 76px); letter-spacing: -0.035em; line-height: 0.98; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.025em; line-height: 1.04; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.15; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); line-height: 1.5; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.muted { color: var(--ink-2); }
.brand { color: var(--brand); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
/* Same mark as the app's splash: 92pt logo in a 132pt continuous rounded square (r 36). */
.logo-mark { width: 38px; height: 38px; border-radius: 10.4px; background: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.logo-mark svg { width: 26.5px; height: 26.5px; }
.logo-mark.lg { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 0 0 4px #FFFFFF, 0 18px 40px rgba(60,20,8,0.3); }
.logo-mark.lg svg { width: 61px; height: 61px; }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 12px; }
.nav a:hover { background: var(--fill); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand-deep); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 22px; border-radius: 16px; border: 0; font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .12s ease, background-color .2s ease; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-brand { background: var(--brand); color: #FFFFFF; box-shadow: 0 10px 22px rgba(196,83,47,0.28); }
.btn-brand:hover { background: var(--brand-deep); color: #FFFFFF; }
.btn-ink { background: var(--ink); color: #FFFFFF; }
.btn-ink:hover { background: #000000; color: #FFFFFF; }
.btn-outline { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline:hover { background: var(--fill); color: var(--ink); }
.btn-sm { height: 42px; padding: 0 16px; font-size: 14px; border-radius: 13px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* Store badge (text version until the App Store listing is live) */
.store-badge { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px 0 16px; border-radius: 16px; background: var(--ink); color: #FFFFFF; text-decoration: none; }
.store-badge:hover { color: #FFFFFF; background: #000000; }
.store-badge small { display: block; font-size: 11px; font-weight: 600; opacity: .75; letter-spacing: .02em; }
.store-badge strong { display: block; font-size: 17px; font-weight: 700; line-height: 1.1; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; position: relative; z-index: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 14px; color: var(--ink-2); }
.hero-blob { position: absolute; border-radius: 50%; z-index: 0; }
@media (max-width: 900px) {
  .hero { padding: 28px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* Phone mockup (drawn in CSS: an illustration of the app, not a screenshot) */
.phone-stage { position: relative; display: flex; justify-content: center; min-height: 560px; }
.phone { position: relative; width: 300px; height: 600px; border-radius: 46px; background: var(--ink); padding: 12px; box-shadow: 0 30px 60px rgba(31,26,23,0.25), 0 0 0 2px #3A332E inset; z-index: 1; }
.phone-screen { width: 100%; height: 100%; border-radius: 36px; background: #FFFFFF; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 40px 16px 16px; position: relative; }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 14px; background: var(--ink); }
.ps-area { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ps-area b { display: block; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.ps-title { font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1; letter-spacing: -0.03em; }
.ps-search { height: 34px; border-radius: 11px; background: var(--fill); display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 11px; color: var(--ink-2); }
.ps-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; }
.ps-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); display: inline-block; margin-right: 6px; animation: pulse 1.6s ease-out infinite; }
.ps-live { border-radius: 20px; background: var(--brand); color: #FFFFFF; overflow: hidden; }
.ps-cover { height: 86px; background: radial-gradient(circle, var(--accent) 4px, transparent 4.5px) 0 0/22px 22px, var(--brand); position: relative; }
.ps-cover::after { content: ""; position: absolute; inset: auto 0 0; height: 40px; background: linear-gradient(to top, rgba(31,26,23,.85), rgba(31,26,23,0)); }
.ps-chip { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--accent); color: var(--ink); font-size: 8px; font-weight: 800; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; }
.ps-live-body { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.ps-live-title { font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.1; }
.ps-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ps-thumbs span { height: 38px; border-radius: 9px; background: rgba(255,255,255,.92); position: relative; }
.ps-thumbs span::after { content: attr(data-p); position: absolute; left: 4px; bottom: 3px; font-size: 8px; font-weight: 800; color: var(--ink); }
.ps-sale { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1.5px solid var(--line); border-radius: 16px; }
.ps-date { width: 44px; height: 50px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; letter-spacing: .08em; flex-shrink: 0; }
.ps-date b { font-family: var(--display); font-size: 19px; letter-spacing: 0; line-height: 1; }
.ps-sale div:last-child { font-size: 11px; font-weight: 700; line-height: 1.25; }
.ps-sale small { display: block; font-size: 9px; font-weight: 500; color: var(--ink-2); }
.float-card { position: absolute; z-index: 2; background: #FFFFFF; border-radius: 18px; padding: 12px 14px; box-shadow: 0 16px 34px rgba(31,26,23,0.18); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.float-card .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.float-a { left: 0; bottom: 64px; transform: rotate(-4deg); }
.float-b { right: 0; top: 232px; transform: rotate(4deg); }
@media (max-width: 640px) {
  .float-card { font-size: 11px; padding: 9px 10px; border-radius: 14px; gap: 8px; }
  .float-card .ic { width: 28px; height: 28px; border-radius: 9px; }
  .float-card .ic svg { width: 15px; height: 15px; }
  .float-card .display { font-size: 15px !important; }
  .float-a { left: -4px; } .float-b { right: -4px; }
}
@media (max-width: 420px) { .phone { width: 280px; height: 570px; } }

/* Hanging tag decoration */
.tag-hang { position: absolute; top: 0; width: 64px; pointer-events: none; transform-origin: 50% 0; z-index: 3; }
.tag-hang svg { overflow: visible; }
.tag-hang .tag { margin-top: -2px; border-radius: 12px 12px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 12px; font-family: var(--display); font-weight: 800; }
.tag-hang .hole { width: 11px; height: 11px; border-radius: 50%; background: #FFFFFF; box-shadow: inset 0 2px 3px rgba(31,26,23,.4); border: 2px solid rgba(31,26,23,.2); }
@media (prefers-reduced-motion: no-preference) {
  .swing { animation: swing 1.6s ease-out .3s both; }
}
@keyframes swing { 0% { transform: rotate(14deg); } 40% { transform: rotate(-8deg); } 70% { transform: rotate(4deg); } 100% { transform: rotate(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(196,83,47,.55); } 100% { box-shadow: 0 0 0 9px rgba(196,83,47,0); } }

/* Sections */
section { position: relative; }
.section { padding: 80px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 40px; }
@media (max-width: 640px) { .section { padding: 56px 0; } .section-head { margin-bottom: 28px; } }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.7); }
.card p { color: var(--ink-2); }
.card-outline { border: 1.5px solid var(--line); background: #FFFFFF; }
.bg-brand-soft { background: var(--brand-soft); }
.bg-accent-soft { background: var(--accent-soft); }
.bg-teal-soft { background: var(--teal-soft); }
.bg-blue-soft { background: var(--blue-soft); }
.bg-green-soft { background: var(--green-soft); }
.bg-fill { background: var(--fill); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 24px; border-radius: 24px; background: var(--fill); display: flex; flex-direction: column; gap: 10px; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--display); font-weight: 800; font-size: 20px; width: 40px; height: 40px; border-radius: 13px; background: var(--ink); color: #FFFFFF; display: grid; place-items: center; }
.step p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Dark band */
.band { background: var(--ink); color: #FFFFFF; border-radius: 34px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.band p { color: rgba(255,255,255,.78); }
.band .pill { align-self: flex-start; }
.band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.band li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.band li svg { flex-shrink: 0; margin-top: 2px; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; } }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 5px 10px; border-radius: 8px; background: var(--accent); color: var(--ink); text-transform: uppercase; }

/* CTA */
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 64px 24px; border-radius: 34px; background: var(--brand); color: #FFFFFF; position: relative; overflow: hidden; }
.cta p { color: rgba(255,255,255,.88); max-width: 520px; }
.cta .store-badge { background: #FFFFFF; color: var(--ink); }
.cta .store-badge:hover { background: var(--accent-soft); color: var(--ink); }

/* Footer */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.footer-links a:hover { color: var(--brand-deep); }
.footer-meta { width: 100%; font-size: 13px; color: var(--ink-3); }

/* Documents (Terms, Privacy) */
.doc-head { padding: 48px 0 24px; display: flex; flex-direction: column; gap: 14px; }
.doc-meta { font-size: 14px; color: var(--ink-2); }
.toc { border-radius: 22px; background: var(--fill); padding: 20px 22px; margin: 8px 0 32px; }
.toc ol { margin: 10px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--brand-deep); text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; margin: 40px 0 12px; scroll-margin-top: 90px; }
.doc h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.doc p, .doc li { color: #3C3F45; font-size: 16px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.callout { border-radius: 18px; padding: 16px 18px; background: var(--accent-soft); border: 1.5px solid var(--accent); font-size: 15px; margin: 16px 0; }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1.5px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th, td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--fill-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1.5px solid var(--line); border-radius: 20px; background: #FFFFFF; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .answer { padding: 0 20px 18px; color: #3C3F45; }
.faq .answer p + p { margin-top: 10px; }

/* Status pages (confirm, reset, share) */
.status-page { min-height: calc(100vh - 68px); display: flex; align-items: center; padding: 40px 0 60px; position: relative; overflow: hidden; }
.status-card { width: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; text-align: left; position: relative; z-index: 1; }
.status-icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.input { height: 54px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--fill-2); padding: 0 16px; font: 400 16px var(--body); color: var(--ink); outline: none; width: 100%; }
.input:focus { border: 2px solid var(--ink); background: #FFFFFF; }
.error { color: var(--danger); font-weight: 700; font-size: 14px; }
.ok { color: var(--green); font-weight: 700; font-size: 14px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: var(--fill); border-radius: 18px; }

/* Shared sale page */
.sale-cover { height: 220px; border-radius: 28px; position: relative; overflow: hidden; background: var(--brand); }
.sale-cover img { width: 100%; height: 100%; object-fit: cover; }
.sale-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 13px; font-weight: 700; }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.item { display: flex; flex-direction: column; gap: 6px; }
.item .thumb { aspect-ratio: 1; border-radius: 16px; background: var(--fill); overflow: hidden; display: grid; place-items: center; color: rgba(31,26,23,.4); }
.item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item b { font-size: 13px; line-height: 1.25; }
.item span { font-family: var(--display); font-weight: 800; color: var(--brand-deep); font-size: 15px; }
@media (max-width: 420px) { .items { grid-template-columns: repeat(2, 1fr); } }

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