/* Adapt Contractor Tools — shared shell. Brand per adapt-website skill. */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  --orange: #F46122; --amber: #F49C22; --green: #6FD81E; --navy: #14142a;
  --cream: #FBEFEB; --brown: #351C11; --ink: #1d1d2b; --muted: #6b6b7b;
  --line: #e6e1dc; --card: #ffffff; --bg: #f7f5f2; --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Roboto, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
h1, h2, h3, .brand { font-family: Oswald, Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; }
h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 8px; }
h2 { font-size: 24px; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; }
a { color: var(--orange); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 10px 24px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { color: #fff; text-decoration: none; font-size: 20px; white-space: nowrap; }
.brand span { color: var(--orange); }
.nav { display: flex; gap: 18px; flex: 1; overflow-x: auto; min-width: 0; }
@media (max-width: 1500px) { .nav { order: 3; flex-basis: 100%; padding-bottom: 4px; } .account { margin-left: auto; } }
@media (max-width: 700px) { .account .acct-email { display: none; } body { overflow-x: hidden; } .nav { flex-wrap: wrap; overflow-x: visible; gap: 8px 16px; } .nav a { padding: 4px 0; } }
.nav a { color: #cfd0e0; text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav a:hover, .nav a.active { color: #fff; }
.account { display: flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* layout pieces */
.hero { padding: 40px 0 24px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 720px; margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.muted { color: var(--muted); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--cream); color: var(--brown); }
.pill.green { background: #e8f9da; color: #2f6a09; }
.pill.orange { background: #fde6db; color: #a33a0c; }
section { padding: 18px 0; }

/* forms + buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 20px; font: 600 15px Roboto, sans-serif; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-go { background: var(--green); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-dark { background: var(--navy); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
label { display: block; font-weight: 500; font-size: 14px; margin: 12px 0 6px; }
input[type=text], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: 15px Roboto, sans-serif; background: #fff;
}
textarea { min-height: 90px; }

/* Google sign-in modal */
.modal-back { position: fixed; inset: 0; background: rgba(20,20,42,.55); display: grid; place-items: center; z-index: 50; }
.modal { background: #fff; border-radius: 16px; padding: 28px; width: min(420px, 92vw); text-align: center; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border: 1px solid #dadce0; border-radius: 8px; background: #fff; font: 500 15px Roboto, sans-serif; cursor: pointer; }
.gbtn:hover { background: #f8f9fa; }

/* usage meter */
.meter { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.meter .bar { flex: 1; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--orange); }

/* CTA footer — every tool ends here */
.cta { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 28px 0; }
.cta h3 { color: #fff; font-size: 22px; }
.cta p { margin: 0; color: #cfd0e0; max-width: 640px; }
.site-footer { padding: 30px 0 50px; color: var(--muted); font-size: 13px; }

/* spinner / steps */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { padding: 8px 0; display: flex; gap: 10px; align-items: center; color: var(--muted); }
.steps li.done { color: var(--ink); }
.steps li.done::before { content: "✓"; color: var(--green); font-weight: 700; }
.steps li.run::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media print { .site-header, .demo-banner, .cta, .site-footer, .no-print { display: none !important; } body { background: #fff; } }
img.avatar { object-fit: cover; }
