/* FRAGO22 Opportunity Scanner: shared styles. Colors match the digest emails. */
:root {
  --navy: #1a3a5c;
  --blue: #2c5f8a;
  --blue-dark: #234c6f;
  --green: #1a7a3a;
  --ink: #1f2933;
  --muted: #52606d;
  --line: #d9e2ec;
  --paper: #ffffff;
  --wash: #f4f7fa;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--blue); }
a:hover { color: var(--navy); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between;
                     gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--navy); text-decoration: none; font-size: 18px; }
.brand span { color: var(--blue); font-weight: 600; }
.site-header nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--navy); }

/* Buttons */
.btn { display: inline-block; background: var(--blue); color: #fff !important; text-decoration: none;
       padding: 12px 22px; border-radius: var(--radius); font-weight: 600; border: 0;
       font-size: 16px; cursor: pointer; }
.btn:hover { background: var(--blue-dark); }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--blue) !important; border: 1px solid var(--blue); }
.btn-ghost:hover { background: var(--wash); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--wash); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { font-size: 20px; color: var(--muted); max-width: 680px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700;
           color: var(--green); margin: 0 0 10px; }

.hero { padding: 72px 0 56px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.trust { font-size: 15px; color: var(--muted); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { font-size: 26px; line-height: 1; margin-bottom: 10px; display: block; }

.note { border-left: 4px solid var(--blue); background: var(--paper); padding: 18px 22px;
        border-radius: 0 var(--radius) var(--radius) 0; }
.note p:last-child { margin-bottom: 0; }
.signature { color: var(--muted); font-size: 15px; }

.fit { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.fit ul { padding-left: 20px; margin: 8px 0 0; }
.fit li { margin-bottom: 6px; }

/* Pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
         margin-top: 24px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--blue); }
.price { font-size: 38px; font-weight: 700; color: var(--navy); margin: 6px 0 2px; }
.price small { font-size: 16px; font-weight: 400; color: var(--muted); }
.plan ul { padding-left: 20px; margin: 14px 0 22px; flex: 1; }
.plan li { margin-bottom: 6px; }
.terms { margin-top: 22px; color: var(--muted); font-size: 15px; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px;
         grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line);
            border-radius: var(--radius); padding: 22px 22px 22px 64px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px;
                    width: 30px; height: 30px; border-radius: 50%; background: var(--blue);
                    color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details p { color: var(--muted); margin: 10px 0 0; }

.sample-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: var(--radius);
                background: #fff; }
.caption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Form */
form { display: grid; gap: 22px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; margin: 0; }
legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
label { font-weight: 600; display: block; margin-bottom: 4px; }
.hint { font-size: 14px; color: var(--muted); margin: 0 0 8px; font-weight: 400; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #bcccdc;
  border-radius: 6px; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 3px solid #9fc2e0; border-color: var(--blue); }
textarea { min-height: 110px; resize: vertical; }
.field { margin-top: 14px; }
.field:first-of-type { margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 8px 0; }
.check input { margin-top: 5px; }
.two { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hidden { position: absolute; left: -10000px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 40px 0; }
  .hero { padding: 48px 0 36px; }
  .sample-frame { height: 520px; }
}
