/* Public pages: landing (/) and About (/about). The app (/app) and friend pages have their own styles. */
@import url('fonts.css');
@import url('rig.css');

:root {
  --stage: #0E5E5B; --stage-deep: #073B39; --spot: #1E8A84;
  --marigold: #F4A300; --marigold-soft: #FFD27A; --ink: #1B1A17; --ink-soft: #4A463F;
  --paper: #FFF8E6; --paper-2: #F7EED6; --rule: #E3D3AE; --red: #B3262E;
  --display: 'Baloo 2', 'Lato', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'DM Sans', 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; }
body.site { margin: 0; background: var(--paper-2); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.site h1, .site h2, .site h3 { font-family: var(--display); line-height: 1.12; margin: 0; }
.site p { margin: 0; }
.site a { color: inherit; }
.site :focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--stage-deep) 94%, transparent); color: #fff; backdrop-filter: blur(6px); }
.site-logo { font-family: var(--display); font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -0.3px; }
.site-nav nav { display: flex; align-items: center; gap: clamp(10px, 3vw, 22px); font-size: 15px; }
.site-nav nav a { text-decoration: none; opacity: .9; }
.site-nav nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { background: var(--marigold); color: var(--ink) !important; opacity: 1 !important; padding: 7px 14px; border-radius: 999px; font-weight: 700; border: 2px solid var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; border-radius: 16px;
  font-family: var(--display); font-weight: 800; font-size: 19px; text-decoration: none; border: 3px solid var(--ink); transition: transform .1s; }
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--marigold); color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: #ffffffaa; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 24px; overflow: hidden;
  padding: clamp(36px, 7vw, 80px) clamp(16px, 5vw, 64px) 0; color: #fff;
  background: radial-gradient(ellipse 70% 70% at 75% 100%, var(--spot), transparent 70%), var(--stage); }
.hero-text { padding-bottom: clamp(36px, 6vw, 72px); max-width: 640px; }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--marigold-soft); margin-bottom: 10px !important; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); font-weight: 800; letter-spacing: -0.8px; }
.lead { font-size: clamp(17px, 2vw, 20px); margin-top: 16px !important; max-width: 58ch; }
.hero .lead { color: #ffffffe0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 14px !important; font-size: 14px; color: #ffffffb0; }
.hero-art { position: relative; justify-self: center; width: min(100%, 340px); }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-bubble { position: absolute; top: -6px; left: -8px; z-index: 2; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px;
  padding: 8px 14px; font-family: var(--display); font-weight: 700; font-size: 18px; box-shadow: 0 4px 0 var(--ink); rotate: -4deg; animation: pop-in .5s .4s both; }

/* Bands */
.band { padding: clamp(44px, 7vw, 84px) clamp(16px, 5vw, 64px); }
.band > h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; text-align: center; margin-bottom: 26px; }
.band-text { max-width: 62ch; margin: 0 auto !important; text-align: center; font-size: 18px; color: var(--ink-soft); }
.band-paper { background: var(--paper);
  background-image: repeating-linear-gradient(transparent 0 31px, var(--rule) 31px 32px); }
.band-dark { background: var(--stage-deep); color: #fff; }
.band-dark .feature p { color: #ffffffcc; }
.band-cta { background: var(--marigold); text-align: center; }
.band-cta .band-text { color: var(--ink); margin-bottom: 22px !important; }
.band-cta .btn-primary { background: var(--paper); }

.excuses { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 760px; margin: 0 auto 26px; }
.excuses p { background: #fff; border: 2px solid var(--ink); border-radius: 18px 18px 18px 4px; padding: 10px 16px; font-family: var(--display); font-weight: 700; font-size: 19px; box-shadow: 0 3px 0 var(--ink); }
.excuses p:nth-child(even) { rotate: 2deg; } .excuses p:nth-child(odd) { rotate: -2deg; }

.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1060px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: #fff; border: 2px solid var(--ink); border-radius: 20px; padding: 22px; box-shadow: 0 5px 0 var(--ink); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--marigold); border: 2px solid var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.steps h3 { font-size: 22px; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: 16px; }

.features { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { border: 1px solid #ffffff2e; border-radius: 18px; padding: 20px; background: #ffffff0d; }
.feature h3 { font-size: 21px; color: var(--marigold-soft); margin-bottom: 6px; }
.feature p { font-size: 16px; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style-position: outside; }
.faq details p { margin-top: 10px !important; color: var(--ink-soft); font-size: 16px; }

/* About */
.about-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: end; overflow: hidden; color: #fff;
  padding: clamp(36px, 7vw, 72px) clamp(16px, 5vw, 64px) 0; background: radial-gradient(ellipse 70% 70% at 80% 100%, var(--spot), transparent 70%), var(--stage); }
.about-hero > div:first-child { padding-bottom: clamp(32px, 6vw, 64px); }
.about-hero h1 { font-size: clamp(36px, 6vw, 58px); font-weight: 800; }
.about-hero .lead { color: #ffffffe0; }
.about-art { width: min(100%, 260px); justify-self: center; }
.about-art svg { width: 100%; height: auto; display: block; }
.about-block { max-width: 760px; margin: 0 auto; padding: 40px clamp(16px, 5vw, 24px) 0; }
.about-block h2 { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 12px; }
.about-block p + p { margin-top: 12px !important; }
.about-list { padding-left: 20px; margin: 0; }
.about-list li + li { margin-top: 10px; }
.about .band-cta { margin-top: 48px; }

/* Footer */
.site-foot { background: var(--ink); color: #ffffffcc; text-align: center; padding: 34px 16px 40px; font-size: 14px; display: grid; gap: 8px; }
.site-foot .site-logo { color: #fff; }
.site-foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 4px; }

/* Bro idles on the public pages */
.site .rig-head { animation: bob 2.6s ease-in-out infinite; }
.site .rig-stache { animation: stache 1.3s ease-in-out infinite; }
.site .rig-arm-wave { animation: wave 0.55s ease-in-out 6 alternate, wave-idle 5s ease-in-out 3.3s infinite; }
@keyframes bob { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-2px); } }
@keyframes stache { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-6deg); } 86% { transform: rotate(6deg); } 94% { transform: rotate(-3deg); } }
@keyframes wave { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
@keyframes wave-idle { 0%, 80%, 100% { transform: rotate(0); } 84%, 92% { transform: rotate(14deg); } 88%, 96% { transform: rotate(-8deg); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

/* Phones */
@media (max-width: 760px) {
  .hero, .about-hero { grid-template-columns: 1fr; }
  .hero-art { width: min(78%, 280px); }
  .about-art { width: min(60%, 200px); }
  .steps, .features { grid-template-columns: 1fr; }
  .site-nav nav a:not(.nav-cta):not([href="/about"]) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
