/* kinwardprotection.com (P1104). Forest green, cream, gold. Lora headings, Inter body. Phone first. */
@font-face { font-family: 'Lora'; src: url('/fonts/lora-latin-wght-normal.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --green: #012C22;
  --green-2: #063A2D;
  --green-3: #0C4A3A;
  --cream: #FCF3E5;
  --cream-2: rgba(252, 243, 229, .78);
  --cream-3: rgba(252, 243, 229, .56);
  --line: rgba(252, 243, 229, .16);
  --gold: #D69F51;
  --gold-2: #E3B572;
  --error: #F2A38F;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px;
  --pad: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--green); color: var(--cream); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: absolute; inset: 0 0 auto; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: .01em; }
.brand img { width: 26px; height: 27px; }
.top.solid { position: static; border-bottom: 1px solid var(--line); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--gold); color: var(--green); font: 600 18px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--gold-2); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, .opt:focus-visible, .field:focus-visible, .icon-btn:focus-visible, .type:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.block { width: 100%; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; }
.hero-photo { position: relative; height: 58svh; min-height: 340px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-photo::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,44,34,.55) 0%, rgba(1,44,34,0) 22%, rgba(1,44,34,0) 45%, rgba(1,44,34,.85) 82%, var(--green) 100%); }
.hero-copy { position: relative; margin-top: -84px; padding-bottom: 40px; z-index: 2; }
.hero h1 { font-size: clamp(32px, 8.6vw, 58px); max-width: 15ch; }
.hero p.lead { color: var(--cream-2); margin: 16px 0 26px; font-size: 18px; max-width: 34ch; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--cream-3); }
.rule { width: 48px; height: 2px; background: var(--gold); border: 0; margin: 0 0 18px; }

/* Sections */
section.band { padding: 64px 0; border-top: 1px solid var(--line); }
section.band h2 { font-size: clamp(27px, 6.4vw, 40px); max-width: 20ch; }
section.band p.sub { color: var(--cream-2); margin: 12px 0 0; max-width: 46ch; }
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px; background: var(--green-2); border: 1px solid var(--line); border-radius: var(--r); }
.steps .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font: 600 18px var(--serif); }
.steps b { display: block; font-size: 17px; }
.steps span { color: var(--cream-2); font-size: 15px; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.type { text-align: left; padding: 18px 16px; min-height: 88px; border-radius: var(--r); border: 1px solid var(--line); background: var(--green-2); color: var(--cream); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.type:hover { border-color: var(--gold); background: var(--green-3); }
.type b { display: block; font: 600 17px var(--serif); }
.type span { display: block; color: var(--cream-3); font-size: 13.5px; margin-top: 4px; line-height: 1.4; }
.family { position: relative; overflow: hidden; }
.family .pic { position: relative; height: 420px; overflow: hidden; border-radius: var(--r); margin-top: 28px; }
.family .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.family .pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,44,34,0) 45%, var(--green) 100%); }
.family .over { position: relative; margin-top: -120px; z-index: 2; padding: 0 4px; }
.family .over p { color: var(--cream-2); margin: 12px 0 22px; max-width: 40ch; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--cream-3); font-size: 14px; }
footer .links { display: flex; gap: 22px; margin-bottom: 14px; }
footer .links a { color: var(--cream-2); text-decoration: none; }
footer .links a:hover { color: var(--cream); text-decoration: underline; }
footer p { margin: 6px 0; max-width: 70ch; }

/* Quote sheet */
.sheet { position: fixed; inset: 0; z-index: 50; background: var(--green); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .2s, transform .2s, visibility 0s .2s; }
.sheet.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
body.locked { overflow: hidden; }
.sheet-top { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; color: var(--cream); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--green-2); }
.icon-btn[hidden] { visibility: hidden; display: grid; }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 6px; transition: width .3s; }
.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-inner { max-width: 560px; margin: 0 auto; padding: 28px var(--pad) 40px; }
.step { display: none; }
.step.on { display: block; animation: in .25s ease; }
@keyframes in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.step .k { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.step h2 { font-size: clamp(26px, 7vw, 34px); margin: 8px 0 8px; }
.step .hint { color: var(--cream-2); margin: 0 0 22px; font-size: 16px; }
.opts { display: grid; gap: 12px; }
.opt { width: 100%; min-height: 62px; padding: 14px 18px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--green-2); color: var(--cream);
  font: 500 18px/1.3 var(--sans); text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: border-color .15s, background .15s; }
.opt:hover { border-color: rgba(214,159,81,.6); }
.opt[aria-pressed="true"] { border-color: var(--gold); background: var(--green-3); }
.opt[aria-pressed="true"]::after { content: ''; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23012C22' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opts.two .opt { justify-content: center; text-align: center; }
.opts.two .opt[aria-pressed="true"]::after { display: none; }
label.lbl { display: block; font-size: 15px; color: var(--cream-2); margin: 0 0 8px; font-weight: 500; }
.field { width: 100%; height: 60px; padding: 0 18px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--green-2); color: var(--cream); font: 500 19px var(--sans); appearance: none; -webkit-appearance: none; }
.field::placeholder { color: var(--cream-3); }
.field:focus { border-color: var(--gold); outline: none; }
select.field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23FCF3E5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 22px; padding-right: 48px; }
select.field option { background: var(--green); color: var(--cream); }
.row { display: grid; gap: 16px; }
.err { color: var(--error); font-size: 15px; margin: 10px 0 0; min-height: 0; }
.err:empty { display: none; }
.field[aria-invalid="true"] { border-color: var(--error); }
.next { margin-top: 26px; }
.consent { margin-top: 22px; display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--green-2); cursor: pointer; }
.consent input { width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.consent span { font-size: 14px; line-height: 1.55; color: var(--cream-2); }
.fine { font-size: 13px; color: var(--cream-3); margin: 14px 0 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(1,44,34,.3); border-top-color: var(--green); animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* Thank-you + legal pages */
.center { min-height: calc(100svh - 69px - 140px); display: grid; place-items: center; text-align: center; padding: 60px 0; }
.center .mark { width: 64px; height: 66px; margin: 0 auto 26px; }
.center h1 { font-size: clamp(30px, 7.6vw, 46px); max-width: 18ch; margin: 0 auto; }
.center p { color: var(--cream-2); max-width: 38ch; margin: 16px auto 0; }
.legal { padding: 44px 0 64px; max-width: 760px; }
.legal h1 { font-size: clamp(32px, 7vw, 44px); }
.legal .upd { color: var(--cream-3); font-size: 14px; margin: 10px 0 30px; }
.legal h2 { font-size: 24px; margin: 38px 0 10px; }
.legal h3 { font-size: 19px; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--cream-2); font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal .box { border: 1px solid var(--gold); border-radius: var(--r); padding: 4px 22px 14px; background: var(--green-2); margin-top: 30px; }

@media (min-width: 900px) {
  :root { --pad: 40px; }
  .top .wrap { height: 84px; }
  .brand { font-size: 17px; }
  .brand img { width: 30px; height: 31px; }
  .hero { min-height: 0; height: min(100vh, 820px); flex-direction: row; }
  .hero-photo { position: absolute; inset: 0 0 0 38%; height: auto; }
  .hero-photo::after { background: linear-gradient(90deg, var(--green) 0%, rgba(1,44,34,.75) 18%, rgba(1,44,34,0) 52%),
    linear-gradient(180deg, rgba(1,44,34,.5) 0%, rgba(1,44,34,0) 20%, rgba(1,44,34,0) 70%, var(--green) 100%); }
  .hero-copy { margin: 0; align-self: center; padding: 84px 0 0; width: 100%; }
  .hero-copy .wrap > div { max-width: 560px; }
  .hero p.lead { font-size: 20px; }
  .btn { min-height: 60px; }
  section.band { padding: 96px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { grid-template-columns: 1fr; padding: 26px; }
  .types { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .type { padding: 24px; min-height: 110px; }
  .family .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
  .family .pic { height: 560px; margin: 0; order: 2; }
  .family .pic::after { background: linear-gradient(90deg, var(--green) 0%, rgba(1,44,34,0) 30%); }
  .family .over { margin: 0; }
  .sheet { background: rgba(0, 20, 15, .72); align-items: center; justify-content: center; padding: 32px; }
  .sheet-card { width: 100%; max-width: 620px; max-height: min(860px, 100%); background: var(--green); border: 1px solid var(--line); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
  .sheet-inner { padding: 34px 44px 44px; }
}
@media (max-width: 899px) { .sheet-card { display: flex; flex-direction: column; height: 100%; } .block-sm { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
