/* ============================================================
   Penny Wise I.T. — Design Brief
   Copper, cream paper, Space Grotesk + Inter.
   ============================================================ */

:root {
  /* Brand palette — from /D/Images/PennyWiseIT-Logo/DESIGN-CONTEXT.md */
  --copper:        #C67A3C;
  --penny-gold:    #E8A665;
  --bronze:        #8B5A2B;
  --amber:         #D4923E;
  --dark-bronze:   #A86428;
  --midnight:      #1A1A28;
  --cream:         #FAF6F1;
  --cream-deep:    #F2EBDF;
  --line:          #E8DDCD;
  --line-stitch:   #D9C8AE;
  --ink:           #1A1A28;
  --ink-soft:      #5C4F3A;
  --ink-mute:      #948672;
  --paper-white:   #FFFFFF;

  --ease:        cubic-bezier(.22,.61,.36,1);
  --r-sm:        4px;
  --r-md:        8px;
  --r-lg:        14px;
  --r-pill:      999px;

  --space-section: clamp(72px, 10vw, 140px);
  --measure: 64ch;
  --container: 1080px;

  --grad-coin: linear-gradient(135deg, var(--amber) 0%, var(--copper) 50%, var(--dark-bronze) 100%);
  --grad-paper: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 500; line-height: 1.15; letter-spacing: -.018em; }
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 500;
}
h1 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--copper);
  letter-spacing: -.015em;
}
h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
}
p { color: var(--ink-soft); margin: 0; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--copper);
  display: block;
}
.eyebrow span {
  color: var(--bronze);
  font-weight: 500;
}

.stitch { display: block; border: 0; border-top: 1px dashed var(--line-stitch); }

/* === Topbar === */
.topbar {
  background: rgba(250, 246, 241, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.topbar-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.topbar-brand img { height: 36px; width: auto; }
.topbar-link {
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper-white);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.topbar-link:hover { background: var(--copper); color: #fff; border-color: var(--copper); }

/* === Loading === */
.load-state {
  min-height: 60vh;
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ink-mute);
  font-size: 1.1rem;
}

/* === Hero === */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 28px clamp(40px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 22% 18%, rgba(232, 166, 101, .26) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(212, 146, 62, .20) 0%, transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { max-width: 18ch; margin: 0 auto 22px; }
.hero-lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 30px;
  line-height: 1.55;
}
.hero-meta {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 14px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  color: var(--copper);
  background: transparent;
  border: 1px solid var(--copper);
  transition: background .2s var(--ease), color .2s var(--ease), transform .12s var(--ease);
}
.hero-cta:hover { background: var(--copper); color: #fff; }
.hero-cta:active { transform: translateY(1px); }

/* === Live preview band === */
.preview-band {
  background: var(--paper-white);
  border-top: 1px dashed var(--line-stitch);
  border-bottom: 1px dashed var(--line-stitch);
  padding: clamp(48px, 7vw, 96px) 28px;
}
.preview-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.device {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 9 / 19;
  margin: 0 auto;
  border-radius: 42px;
  background: var(--midnight);
  padding: 12px;
  box-shadow:
    0 32px 80px -24px rgba(26, 26, 40, .35),
    0 12px 28px -10px rgba(198, 122, 60, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .04);
  position: relative;
}
.device::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px;
  background: var(--midnight);
  border-radius: 999px;
  z-index: 2;
}
.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}
.device-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.preview-instructions h2 { margin-bottom: 14px; }
.preview-instructions p { font-size: 1rem; margin-bottom: 14px; max-width: 50ch; }
.preview-instructions .hint {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--copper);
  margin-top: 8px;
}

/* === Form === */
.brief-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}
.form-section {
  padding: clamp(56px, 8vw, 100px) 0;
  border-bottom: 1px dashed var(--line-stitch);
}
.form-section:first-of-type { padding-top: clamp(64px, 9vw, 110px); }
.form-section.form-final { border-bottom: 0; padding-bottom: clamp(60px, 9vw, 110px); }

.form-head { margin-bottom: 28px; position: relative; padding-left: 0; }
.step {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .26em;
  color: var(--copper);
  margin-bottom: 14px;
}
.form-head h2 { margin: 0 0 10px; }
.form-head p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.form-fields { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem;
  letter-spacing: .04em;
  font-weight: 500;
  color: var(--ink);
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  line-height: 1.55;
  resize: vertical;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { min-height: 88px; }
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
  color: var(--ink-mute);
  font-style: italic;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(198, 122, 60, .14);
}

/* Dials (sliders) */
.dial {
  border: 1px solid var(--line);
  background: var(--paper-white);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin: 0;
}
.dial legend {
  padding: 0 6px;
  margin-left: -6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper-white);
}
.dial-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.dial-end {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .92rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.3;
}
.dial-end:first-of-type { text-align: left; }
.dial-end:last-of-type { text-align: right; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-coin);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px -2px rgba(198, 122, 60, .55);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--copper);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px -2px rgba(198, 122, 60, .55);
  cursor: pointer;
}
.dial-output {
  display: block;
  margin-top: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--copper);
  font-size: 1rem;
  text-align: center;
}

/* Checkboxes */
.checks {
  border: 1px solid var(--line);
  background: var(--paper-white);
  border-radius: var(--r-md);
  padding: 14px 18px 16px;
  margin: 0;
  display: grid;
  gap: 8px;
}
.checks legend {
  padding: 0 6px;
  margin-left: -6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper-white);
}
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: var(--r-sm);
  transition: background .15s var(--ease);
}
.check:hover { background: var(--cream); }
.check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--bronze);
  border-radius: 4px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease);
  position: relative;
}
.check input[type="checkbox"]:checked {
  background: var(--copper);
  border-color: var(--copper);
}
.check input[type="checkbox"]:checked::after {
  content: '✓';
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.check span { color: var(--ink-soft); font-size: .96rem; line-height: 1.4; }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Submit row */
.submit-row {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.btn-submit {
  appearance: none;
  border: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--r-pill);
  color: #fff;
  background: var(--grad-coin);
  box-shadow: 0 8px 24px -10px rgba(198, 122, 60, .55);
  transition: transform .12s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer;
}
.btn-submit:hover { box-shadow: 0 14px 32px -10px rgba(198, 122, 60, .65); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; }
.submit-hint {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ink-mute);
  font-size: .96rem;
}
.error-msg {
  background: rgba(198, 122, 60, .08);
  border: 1px solid var(--copper);
  color: var(--bronze);
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: .9rem;
  margin: 14px 0 0;
}

/* === Footer === */
.footer {
  border-top: 1px dashed var(--line-stitch);
  padding: 36px 28px;
  text-align: center;
  background: var(--cream);
}
.footer-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: .98rem;
  margin: 0 0 4px;
}
.footer-line a {
  color: var(--copper);
  text-decoration: none;
  border-bottom: 1px dashed var(--copper);
}
.footer-line a:hover { color: var(--bronze); border-bottom-color: var(--bronze); }

/* === Thanks page === */
.thanks-wrap {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 80px 28px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 70% at 50% 30%, rgba(232, 166, 101, .25) 0%, transparent 70%),
    var(--cream);
}
.thanks-inner { max-width: 640px; }
.thanks-coin {
  width: 96px; height: 96px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--grad-coin);
  box-shadow: 0 18px 40px -12px rgba(198, 122, 60, .55);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
}
.thanks-inner h1 { margin-bottom: 18px; }
.thanks-inner p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 0 auto 28px;
  max-width: 50ch;
}

/* === 404 === */
.fourohfour-wrap {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 80px 28px;
  text-align: center;
}

/* === Index landing === */
.index-wrap {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 80px 28px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 70% at 50% 30%, rgba(232, 166, 101, .22) 0%, transparent 70%),
    var(--cream);
}
.index-wrap h1 { max-width: 16ch; margin: 0 auto 18px; }
.index-wrap p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 auto 26px;
}

/* === Testimonial band ============================ */
.testimonial-band {
  padding: clamp(56px, 8vw, 100px) 28px;
  background:
    radial-gradient(ellipse 70% 70% at 18% 20%, rgba(232, 166, 101, .14) 0%, transparent 60%),
    radial-gradient(ellipse 70% 70% at 88% 80%, rgba(212, 146, 62, .12) 0%, transparent 60%),
    var(--cream);
  border-bottom: 1px dashed var(--line-stitch);
}
.testimonial-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 56px) clamp(28px, 3.5vw, 44px);
  box-shadow:
    0 24px 60px -22px rgba(198, 122, 60, .28),
    0 6px 18px -8px rgba(26, 26, 40, .08);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-coin);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.quote-mark {
  position: absolute;
  top: 14px;
  left: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--penny-gold);
  opacity: .35;
  user-select: none;
  pointer-events: none;
}
.testimonial-quote {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-soft);
  font-style: normal;
  position: relative;
  z-index: 1;
}
.testimonial-quote strong { color: var(--bronze); font-weight: 600; }
.testimonial-pull {
  display: block;
  margin-top: 16px;
  font-style: italic;
  font-size: 1.08em;
  color: var(--ink);
  border-left: 2px solid var(--copper);
  padding-left: 14px;
}
.testimonial-attr {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-stitch);
}
.testimonial-author {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.testimonial-business {
  font-size: .85rem;
  color: var(--ink-mute);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}
.testimonial-link {
  margin-left: auto;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--copper);
  text-decoration: none;
  border-bottom: 1px dashed var(--copper);
  padding-bottom: 1px;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.testimonial-link:hover { color: var(--bronze); border-bottom-color: var(--bronze); }
.testimonial-yours {
  margin: 24px 0 0;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--copper);
}

/* === Upload field ============================ */
.upload-field { margin-top: 4px; }
.upload-blurb {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
}
.upload-drop {
  display: block;
  border: 1.5px dashed var(--line-stitch);
  border-radius: var(--r-md);
  background: var(--paper-white);
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
  position: relative;
}
.upload-drop:hover { border-color: var(--copper); background: var(--cream); }
.upload-drop.is-drag { border-color: var(--copper); background: var(--cream-deep); }
.upload-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-drop-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--bronze);
  pointer-events: none;
}
.upload-drop-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--copper);
}
.upload-drop-hint {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ink-mute);
  font-size: .9rem;
}
.upload-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.upload-list li {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 10px 8px 14px;
  font-size: .88rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.upload-list li .upload-name {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-list li .upload-size {
  color: var(--ink-mute);
  font-size: .78rem;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.upload-list li button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-mute);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 4px;
  line-height: 1;
}
.upload-list li button:hover { color: var(--copper); }
.upload-warning {
  margin-top: 10px;
  font-size: .85rem;
  color: var(--bronze);
  background: rgba(198, 122, 60, .08);
  border: 1px solid var(--copper);
  border-radius: var(--r-sm);
  padding: 8px 12px;
}

/* === Personal sign-off card ============================ */
.signoff-card {
  margin-top: 14px;
  background:
    radial-gradient(ellipse 70% 70% at 0% 0%, rgba(232, 166, 101, .14) 0%, transparent 60%),
    var(--paper-white);
  border: 1px dashed var(--line-stitch);
  border-radius: var(--r-md);
  padding: 22px 22px 22px 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
}
.signoff-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-coin);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(198, 122, 60, .45);
  flex: 0 0 auto;
}
.signoff-mark img { width: 28px; height: 28px; }
.signoff-text {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.signoff-text strong { color: var(--ink); font-style: normal; font-weight: 500; }

/* === Responsive === */
@media (max-width: 760px) {
  .preview-inner { grid-template-columns: 1fr; }
  .device { max-width: 280px; }
  .dial-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .dial-end:first-of-type, .dial-end:last-of-type { text-align: center; }
  .topbar-link { display: none; }
  .testimonial-attr { flex-direction: column; align-items: flex-start; }
  .testimonial-link { margin-left: 0; }
  .signoff-card { grid-template-columns: 1fr; text-align: left; }
}
