/* Public website (quackware.app). Colours from the Waddle logo: yellow,
   black outline, and the dark blue of the TV's start screen. Branding gets
   its full treatment in Phase 3 (3.007). */
:root {
  --yellow: #fbd000;
  --yellow-dark: #e0b900;
  --navy: #1c2530;
  --navy-soft: #2a3644;
  --ink: #15191e;
  --muted: #5b6673;
  --line: #e4e7eb;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--yellow-dark); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.small { font-size: 0.85rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700;
  border: 2px solid var(--navy); color: var(--navy); background: transparent; text-decoration: none; cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--ink); }
.btn-small { padding: 7px 16px; font-size: 0.9rem; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.1rem; }
.logo img { width: 38px; height: 38px; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 600; }
.site-nav a:not(.btn):hover { color: var(--navy-soft); text-decoration: underline; text-decoration-color: var(--yellow); }
.site-footer { background: var(--navy); color: #c7d0da; padding: 40px 0; margin-top: 40px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin: 12px 0; }
.site-footer a { color: #fff; }

/* Sections */
.hero { background: var(--navy); color: #fff; padding: 72px 0; }
.hero .lead { color: #c7d0da; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(320px, 70%); background: #fff; border-radius: 50%; padding: 12%; }
.block { padding: 56px 0; }
.block + .block { border-top: 1px solid var(--line); }
.rich ul { padding-left: 1.2em; }
.rich li { margin-bottom: 0.4em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.card { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--yellow); }
.card img { border-radius: 10px; margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; }
.figure { margin: 0; }
.figure img { border-radius: var(--radius); }
.figure figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 28px; }
.plan { border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan-highlight { border-color: var(--yellow); box-shadow: 0 10px 30px rgba(28, 37, 48, 0.08); }
.plan .price { font-size: 2.2rem; font-weight: 800; }
.plan .period { color: var(--muted); margin-bottom: 12px; }
.plan ul { padding-left: 1.2em; flex: 1; }
.plan .btn { align-self: flex-start; }
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq .rich { margin-top: 10px; color: var(--muted); }
.cta { background: var(--yellow); padding: 56px 0; text-align: center; }
.cta .btn-yellow { background: var(--navy); border-color: var(--navy); color: #fff; }
.cta .btn-yellow:hover { background: var(--navy-soft); }

/* Contact form */
.contact-form { display: grid; gap: 16px; margin-top: 20px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid #c9ced5; border-radius: 10px; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(251, 208, 0, 0.5); border-color: var(--navy); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--bg-soft); border-left: 4px solid var(--yellow); padding: 12px 16px; border-radius: 6px; }
.notice.ok { border-left-color: #2e9e5b; }
.notice.error { border-left-color: #c8372d; }

/* Legal documents */
.legal .meta { color: var(--muted); font-size: 0.95rem; }
.legal .rich h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal .rich h3 { margin-top: 1.4em; }
.legal table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 160px; }
  .site-nav { gap: 14px; }
  .block { padding: 40px 0; }
}
