/* Sheet2Site — shared stylesheet. Mobile-first, no horizontal overflow. */
:root {
  --green: #0e7a4d;
  --green-dark: #0a5c3a;
  --green-light: #e6f4ec;
  --ink: #17211b;
  --muted: #5b6b60;
  --line: #dce5de;
  --bg: #ffffff;
  --bg-soft: #f4f8f5;
  --accent: #f2b705;
  --radius: 12px;
  --maxw: 1020px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img, svg, table, textarea, input, select { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 1.6em; }
h3 { font-size: 1.15rem; margin-top: 1.2em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
code { background: var(--bg-soft); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
pre { background: var(--bg-soft); padding: 1em; border-radius: var(--radius); overflow-x: auto; font-size: .85em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--green); }
.main-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--green-light); color: var(--green-dark); }
.nav-cta { background: var(--green) !important; color: #fff !important; font-weight: 700; }
.nav-cta:hover { background: var(--green-dark) !important; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--green-light), #fff); padding: 48px 0 32px; }
.hero p.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.hero h1 { font-size: 2.2rem; }
.btn {
  display: inline-block; background: var(--green); color: #fff; font-weight: 700;
  padding: 14px 24px; border-radius: 10px; text-decoration: none; border: 0; cursor: pointer;
  font-size: 1.05rem; line-height: 1.2; min-height: 52px;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--green-dark); border: 2px solid var(--green); }
.btn-secondary:hover { background: var(--green-light); color: var(--green-dark); }
.btn-small { padding: 10px 16px; font-size: .95rem; min-height: 44px; }
.btn-gold { background: var(--accent); color: var(--ink); }
.btn-gold:hover { background: #d9a400; color: var(--ink); }

/* 3-step flow strip */
.steps-flow { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 24px 0 0; }
.step-flow { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.step-flow .num { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.step-flow strong { display: block; font-size: 1.05rem; }
.step-flow span { color: var(--muted); font-size: .95rem; }
.no-signup { font-weight: 700; color: var(--green-dark); }

/* Pro badges, locked fields, upgrade prompt */
.pro-badge { display: inline-block; background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.pro-locked { background: var(--bg-soft); }
.pro-note { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.upgrade-banner { display: none; background: #fdf6e0; border: 2px solid var(--accent); border-radius: var(--radius); padding: 16px; margin-top: 16px; }
.upgrade-banner.show { display: block; }
.upgrade-banner strong { font-size: 1.05rem; }
.free-limit-note { font-size: .95rem; color: var(--muted); margin-top: 10px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 24px 0; }
.price-card { border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.price-card.pro { border-color: var(--green); background: var(--green-light); }
.price-card h2 { margin-top: 0; }
.price { font-size: 2.4rem; font-weight: 800; line-height: 1; margin: 8px 0 4px; }
.price small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price-card ul { margin: 14px 0; }
.price-card li { margin-bottom: 6px; }
.fine-print { font-size: .9rem; color: var(--muted); }

/* Tool */
.tool { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 28px 0; }
.tool h2 { margin-top: 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tab-btn { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: .95rem; }
.tab-btn[aria-selected="true"] { background: var(--green); color: #fff; border-color: var(--green); font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
textarea, input[type="text"], input[type="url"], input[type="email"], select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff; min-height: 52px; font-size: 1rem;
}
input[type="file"] { width: 100%; padding: 12px 0; font: inherit; min-height: 52px; }
textarea { min-height: 150px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
.hint { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.tool-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.status { font-size: .95rem; margin-top: 10px; }
.status.error { color: #a12020; font-weight: 600; }
.status.ok { color: var(--green-dark); font-weight: 600; }

/* Preview */
.preview { margin-top: 20px; }
.preview-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.preview-toolbar input[type="text"] { flex: 1 1 220px; }
.preview-toolbar select { flex: 0 1 200px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: .95rem; }
.card dt { font-weight: 700; color: var(--muted); }
.card dd { margin: 0; word-break: break-word; }
.card .card-link { margin-top: 8px; }
.empty-note { color: var(--muted); padding: 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Feature grid / steps */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 20px 0; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.feature h3 { margin-top: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 20px; min-height: 40px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px;
  border-radius: 50%; background: var(--green); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.callout { background: var(--green-light); border-left: 4px solid var(--green); padding: 14px 16px; border-radius: 0 8px 8px 0; margin: 20px 0; }
.callout.warn { background: #fdf6e0; border-left-color: var(--accent); }
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item h3 { margin: 0 0 6px; }
.example-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 20px 0; background: #fff; }
.example-block h3 { margin-top: 0; }
table.data { border-collapse: collapse; width: 100%; font-size: .9rem; display: block; overflow-x: auto; }
table.data th, table.data td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
table.data th { background: var(--bg-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0; background: var(--bg-soft); font-size: .95rem; }
.site-footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0 0 8px; color: var(--muted); }

main { padding: 8px 0 16px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 16px 0 0; }

@media (min-width: 640px) {
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.6rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .steps-flow { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
