/* PorchPenny — mobile-first, no build step */
:root {
  --navy-900: #0F2338;
  --navy-800: #16304F;
  --navy-700: #23466F;
  --teal-700: #145F5A;
  --teal-600: #1B7A73;
  --teal-100: #DDF1EE;
  --teal-50:  #EEF8F6;
  --copper-700: #9A4A1D;
  --copper-600: #B0551F;
  --copper-100: #F8E6D6;
  --cream: #FBF8F3;
  --paper: #FFFFFF;
  --ink: #1F2933;
  --ink-soft: #4A5562;
  --line: #E4DDD2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,35,56,.06), 0 8px 24px rgba(15,35,56,.08);
  --shadow-lg: 0 2px 4px rgba(15,35,56,.06), 0 18px 48px rgba(15,35,56,.14);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Source Serif Pro", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: .15em; }
a:hover { color: var(--navy-800); }
:focus-visible { outline: 3px solid var(--copper-600); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-serif); color: var(--navy-800); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 64px 0; }
.section--white { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--navy-800); color: #E8EEF5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); margin-bottom: .75rem; }
.section--navy .eyebrow { color: #8FDCD3; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy-800); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.btn--buy { background: var(--copper-600); color: #fff; box-shadow: 0 6px 18px rgba(176,85,31,.28); }
.btn--buy:hover { background: var(--copper-700); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn--ghost:hover { background: var(--navy-800); color: #fff; }
.btn--teal { background: var(--teal-700); color: #fff; }
.btn--teal:hover { background: var(--navy-800); color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn--block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,248,243,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a:not(.btn) { display: none; color: var(--navy-800); text-decoration: none; font-weight: 600; font-size: .97rem; }
.nav a:not(.btn):hover { color: var(--teal-700); text-decoration: underline; }
@media (min-width: 860px) { .nav a:not(.btn) { display: inline; } .brand img { width: 190px; } }

/* Site notice (placeholder links) */
.site-notice { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 99; background: var(--navy-800); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); text-align: center; }

/* Hero */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
.hero h1 span { color: var(--teal-700); }
.hero .tagline { font-size: 1.2rem; font-weight: 600; color: var(--navy-700); margin-bottom: 1rem; }
.hero .tagline b { color: var(--teal-700); }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 18px 0 18px; }
.price-now { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--navy-800); line-height: 1; }
.price-was { color: var(--ink-soft); font-size: 1.05rem; }
.price-was s { text-decoration-thickness: 2px; }
.pill { display: inline-block; background: var(--copper-100); color: var(--copper-700); font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; color: var(--ink-soft); font-size: .98rem; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23145F5A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero-visual { position: relative; }
.frame { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; background: #F2EEE7; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D8CFC2; }
.hero-badge { position: absolute; right: -6px; bottom: -22px; width: 58%; max-width: 300px; }
.hero-badge .frame { border: 3px solid #fff; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 88px; }
  .hero .wrap { grid-template-columns: 1fr 1.08fr; gap: 56px; }
  .hero-badge { right: -18px; bottom: -34px; }
}

/* Problem */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; margin-bottom: .35em; }
.card p { margin: 0; color: var(--ink-soft); }
.card .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--copper-100); color: var(--copper-700); margin-bottom: 12px; }
.card .icon svg { width: 22px; height: 22px; }

/* Solution */
.solution-grid { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 760px) { .solution-grid { grid-template-columns: repeat(3, 1fr); } }
.solution-grid .item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px; }
.solution-grid .item p { margin: 0; color: #D3DDE8; }
.solution-grid .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-600); color: #fff; font-weight: 800; margin-bottom: 10px; }

/* Features */
.feature { display: grid; gap: 22px; align-items: center; padding: 30px 0; }
.feature + .feature { border-top: 1px dashed var(--line); }
.feature h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.feature p { color: var(--ink-soft); }
.feature ul { color: var(--ink-soft); margin: 0; }
.feature ul li + li { margin-top: 4px; }
.feature .shot a { display: block; border-radius: var(--radius); }
.feature .shot img { width: 100%; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1.35fr; gap: 48px; padding: 44px 0; }
  .feature--flip .copy { order: 2; }
}
.feature-grid { display: grid; gap: 20px; margin-top: 30px; }
@media (min-width: 820px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feature-card .img { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.feature-card .img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.feature-card .body { padding: 18px 20px 22px; }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-700); background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }

/* Included + pricing */
.included { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .included { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.file-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.file-list .ext { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; font-size: .68rem; font-weight: 800; color: #fff; background: var(--teal-700); letter-spacing: .02em; }
.file-list .ext--pdf { background: var(--copper-600); }
.file-list .ext--link { background: var(--navy-700); }
.file-list strong { display: block; color: var(--navy-800); }
.file-list span.desc { color: var(--ink-soft); font-size: .95rem; }
.price-card { background: var(--paper); border: 2px solid var(--navy-800); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-lg); position: relative; }
.price-card h3 { font-size: 1.35rem; }
.price-card .price-line { margin: 10px 0 6px; }
.price-card .fine { font-size: .9rem; color: var(--ink-soft); margin: 12px 0 0; }
.price-card .checks { margin: 16px 0 20px; }

/* Compatibility */
.compat { display: grid; gap: 18px; }
@media (min-width: 760px) { .compat { grid-template-columns: repeat(2, 1fr); } }
.compat .card { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.app-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem; }
.app-icon--sheets { background: #137333; }
.app-icon--excel { background: #1D6F42; }
.compat-note { margin-top: 18px; color: var(--ink-soft); font-size: .95rem; text-align: center; }

/* Lead magnet */
.magnet { background: linear-gradient(135deg, var(--teal-700), var(--navy-800)); color: #E9F4F2; border-radius: 22px; padding: 30px 22px; display: grid; gap: 22px; align-items: center; box-shadow: var(--shadow-lg); }
.magnet h2 { color: #fff; }
.magnet p { color: #D6E9E6; }
.magnet .eyebrow { color: #A9EAE1; }
@media (min-width: 900px) { .magnet { grid-template-columns: 1.1fr 1fr; padding: 44px; gap: 40px; } }
.signup { background: #fff; color: var(--ink); border-radius: 16px; padding: 22px; }
.signup label { display: block; font-weight: 700; color: var(--navy-800); margin-bottom: 6px; }
.signup input[type="email"] { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; border: 2px solid #C9C1B4; border-radius: 12px; background: #fff; color: var(--ink); }
.signup input[type="email"]:focus { border-color: var(--teal-700); outline: 3px solid var(--teal-100); outline-offset: 0; }
.signup .btn { margin-top: 12px; }
.signup .fine { font-size: .85rem; color: var(--ink-soft); margin: 12px 0 0; }
.signup .status { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; color: var(--teal-700); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; color: var(--navy-800); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--teal-700); }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 0 16px; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta .price-line { justify-content: center; }
.final-cta .cta-row { justify-content: center; }
.section--navy .price-now { color: #fff; }
.section--navy .price-was { color: #C5D2E0; }
.section--navy .btn--ghost { color: #fff; border-color: #fff; }
.section--navy .btn--ghost:hover { background: #fff; color: var(--navy-800); }

/* Footer */
.site-footer { background: var(--navy-900); color: #C5D2E0; padding: 48px 0 32px; font-size: .95rem; }
.site-footer a { color: #E6EEF6; }
.site-footer a:hover { color: #8FDCD3; }
.footer-grid { display: grid; gap: 26px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid img { width: 180px; margin-bottom: 12px; }
.footer-grid h2 { font-family: var(--font-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #8FA6BF; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: #9FB2C6; }
.footer-legal p { margin: 0 0 .5em; }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal .updated { color: var(--ink-soft); font-size: .95rem; }
.legal .callout { background: var(--copper-100); border-left: 4px solid var(--copper-600); padding: 16px 18px; border-radius: 8px; color: var(--ink); }
.legal li + li { margin-top: .35em; }

/* Nicer line breaks where supported */
h1, h2, h3, .tagline, .section-head .lead { text-wrap: balance; }
.signup .status:empty { min-height: 0; margin: 0; }

.signup .status.is-error { color: #b42318; }

.magnet > div a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.magnet > div a:hover { color: #F8E6D6; }
