/* Same look as barrl.dev (colors, type, buttons, header, footer), laid out
   as its own page. Tokens match resources/Barrl_Brand_Guide.md in that repo. */
:root {
  --indigo: #0b307b;
  --coral: #ff6b6b;
  --background: #fafafa;
  --text: #333333;
  --muted: #5f6470;
  --white: #ffffff;
  --border: #eeeeee;
  --bubble: #e9ecf2;
  --success: #69c9c0;
  --shadow: rgba(11, 48, 123, 0.22);
  /* Side padding that centers a 1080px column on wide screens. */
  --gutter: max(6%, calc((100% - 1080px) / 2));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Open Sans, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 107, 107, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(59, 158, 218, 0.12), transparent 26rem),
    var(--background);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: Poppins, Inter, Arial, sans-serif;
  color: var(--indigo);
  line-height: 1.06;
  letter-spacing: -0.05em;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

section {
  scroll-margin-top: 90px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--coral);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.11em;
}

.kicker svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(255, 107, 107, 0.22);
  transition: transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.light {
  background: var(--white);
  color: var(--indigo);
  box-shadow: none;
}

.text-link {
  font-weight: 800;
  color: var(--indigo);
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Client bar: returning clients text their changes from here. */

.client-bar {
  padding: 9px var(--gutter);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
  flex-wrap: wrap;
  background: var(--indigo);
  color: var(--white);
  font-size: 0.92rem;
  text-align: center;
}

.client-bar span {
  opacity: 0.85;
}

.client-bar a {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.client-bar svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.client-bar .client-fine {
  flex-basis: 100%;
  max-width: 760px;
  margin: 2px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.client-bar .client-fine a {
  display: inline;
  white-space: nowrap;
  font-weight: 600;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Header */

.site-header {
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(238, 238, 238, 0.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--indigo);
  letter-spacing: -0.05em;
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: block;
}

.brand-tag {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--coral);
  padding: 3px 10px;
  border-radius: 999px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.88;
}

.site-nav a:hover {
  color: var(--indigo);
}

.site-nav .nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-weight: 900;
  opacity: 1;
}

.site-nav .nav-cta:hover {
  color: var(--white);
}

/* Hero */

.hero {
  padding: 72px var(--gutter) 80px;
  text-align: center;
}

h1 {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  max-width: 880px;
  margin: 0 auto;
}

.underline {
  white-space: nowrap;
  background: linear-gradient(transparent 68%, rgba(255, 107, 107, 0.3) 68%);
}

.lede {
  font-size: 1.22rem;
  max-width: 640px;
  margin: 24px auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Demo: a text thread turning into an updated website. */

.demo-caption {
  margin: 72px 0 0;
  font-family: Poppins, Inter, Arial, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--indigo);
}

.demo {
  margin: 28px auto 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  text-align: left;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 85%;
  margin: 0;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 0.97rem;
  line-height: 1.4;
}

.bubble.sent {
  align-self: flex-end;
  background: var(--indigo);
  color: var(--white);
  border-bottom-right-radius: 6px;
}

.bubble.received {
  align-self: flex-start;
  background: var(--bubble);
  border-bottom-left-radius: 6px;
}

.demo-arrow {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-site {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 80px var(--shadow);
  transform: rotate(1.5deg);
}

.mini-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: #f2f4f8;
}

.mini-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d8dde7;
}

.mini-body {
  padding: 18px 20px 20px;
}

.mini-name {
  display: block;
  font-family: Poppins, Inter, Arial, sans-serif;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  color: var(--indigo);
}

.mini-badge {
  display: inline-block;
  margin: 6px 0 14px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(105, 201, 192, 0.2);
  color: #23756d;
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-hours {
  margin: 0 0 16px;
  font-size: 0.92rem;
}

.mini-hours div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 8px;
}

.mini-hours dt {
  font-weight: 800;
}

.mini-hours dd {
  margin: 0;
  text-align: right;
}

.mini-hours .changed {
  background: rgba(255, 107, 107, 0.12);
  color: #d94848;
  font-weight: 800;
}

.mini-call {
  display: block;
  padding: 10px;
  border-radius: 999px;
  background: var(--indigo);
  color: var(--white);
  text-align: center;
  font-weight: 800;
  font-size: 0.92rem;
}

/* How it works */

.how {
  padding: 72px var(--gutter);
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how h2 {
  text-align: center;
  margin-bottom: 44px;
}

.how ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.how li {
  padding: 0 28px;
}

.how li + li {
  border-left: 1px dashed #dddddd;
}

.num {
  display: block;
  font-family: Poppins, Inter, Arial, sans-serif;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--coral);
  margin-bottom: 12px;
}

.how h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.how p {
  margin: 0;
}

/* What you get */

.included {
  padding: 80px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.included-intro p {
  font-size: 1.12rem;
  margin: 18px 0 0;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.checklist li {
  position: relative;
  padding-left: 38px;
  font-size: 1.04rem;
}

/* Check mark drawn in CSS so the list needs no icon markup. */
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--coral);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.checklist strong {
  color: var(--indigo);
}

/* Example */

.example {
  padding: 80px var(--gutter);
  background: linear-gradient(145deg, var(--indigo), #061f55);
  color: var(--white);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.example h2 {
  color: var(--white);
}

.example-phone {
  width: 260px;
  padding: 10px;
  border-radius: 36px;
  background: #0b0d12;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.example-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.example-copy {
  max-width: 520px;
}

.example-copy p:not(.kicker) {
  font-size: 1.12rem;
  margin: 18px 0 30px;
  opacity: 0.92;
}

/* Pricing */

.pricing {
  padding: 88px var(--gutter);
}

.pricing-card {
  max-width: 660px;
  margin: 0 auto;
  padding: 44px 40px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.045);
}

.soon {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card p {
  font-size: 1.1rem;
  margin: 16px 0 24px;
}

/* Final call to action */

.final-cta {
  padding: 76px var(--gutter);
  background: var(--white);
  border-top: 1px solid var(--border);
  text-align: center;
}

.final-cta p {
  font-size: 1.12rem;
  max-width: 560px;
  margin: 16px auto 30px;
}

/* Legal pages (privacy, SMS terms) */

.legal-hero {
  padding: 64px var(--gutter) 16px;
}

.legal-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin: 0;
}

.legal-effective {
  margin: 12px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.legal-lede {
  max-width: 720px;
  margin: 20px 0 0;
  font-size: 1.15rem;
}

.legal-body {
  padding: 24px var(--gutter) 88px;
}

.legal-body a {
  color: var(--indigo);
  font-weight: 700;
  text-decoration-color: var(--coral);
  text-underline-offset: 3px;
}

.legal-section {
  max-width: 760px;
}

.legal-section + .legal-section {
  margin-top: 40px;
}

.legal-section h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin-bottom: 12px;
}

.legal-section p,
.legal-section ul {
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.legal-section ul {
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.legal-section li::marker {
  color: var(--coral);
}

.legal-section strong {
  color: var(--indigo);
}

/* Footer */

footer {
  padding: 34px var(--gutter);
  background: var(--text);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  display: block;
}

footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

footer a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.88;
}

footer a:hover {
  opacity: 1;
}

/* On phones the link opens a text with the number filled in, so hide it to keep
   the bar on one line. */
@media (max-width: 520px) {
  .client-bar {
    font-size: 0.88rem;
  }

  .client-number {
    display: none;
  }
}

@media (max-width: 860px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .lede {
    font-size: 1.1rem;
  }

  .demo-caption {
    margin-top: 52px;
  }

  .demo {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }

  .demo-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .mini-site {
    transform: none;
  }

  .how ol {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .how li {
    padding: 0;
  }

  .how li + li {
    border-left: 0;
    border-top: 1px dashed #dddddd;
    padding-top: 32px;
  }

  .included,
  .example {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .example-phone {
    width: 220px;
    justify-self: center;
  }

  .pricing-card {
    padding: 36px 22px;
  }
}

.nowrap {
  white-space: nowrap;
}
