/* InPlug landing, "Loud and flat": one flat colour per chapter, the heaviest type, the real windows stuck on. */

:root {
  --blue: #3040ff;
  --red: #ff3b1f;
  --black: #0a0a0a;
  --navy: #050a5c;
  --white: #ffffff;
  --surface: #f3f3f3;
  --muted: #6b6b6b;

  --font-display: 'Red Hat Display', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Red Hat Text', 'Helvetica Neue', Arial, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 4.2vw, 4.5rem);
  --step-sub: 2.5rem;
  --step-display: clamp(2.75rem, 11vw, 10rem);

  --margin: clamp(1.25rem, 3vw, 2.75rem);
  --radius: 32px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; position: relative; background: var(--white); color: var(--black); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, dl, dd, dt { margin: 0; }
ul { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 0; }
::selection { background: var(--black); color: var(--white); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 900; text-wrap: balance; hyphens: none; }
.head { font-family: var(--font-display); font-weight: 900; font-size: var(--step-head); line-height: 0.92; letter-spacing: -0.03em; }
.lead { font-size: var(--step-lead); line-height: 1.3; }
p { text-wrap: pretty; }
.nums { font-variant-numeric: tabular-nums; }

/* ---------- buttons: pills, one shape ---------- */
.button { display: inline-block; padding: 0.85em 1.6em; border-radius: 999px; font-family: var(--font-display); font-weight: 900; font-size: var(--step-body); line-height: 1.1; text-decoration: none; letter-spacing: -0.01em; transition: transform 140ms var(--ease-out), background-color 180ms var(--ease-out), color 180ms var(--ease-out); }
.button--black { background: var(--black); color: var(--white); }
.button--black:hover { background: #2a2a2a; }
.button--white { background: var(--white); color: var(--black); }
.button--white:hover { background: #e8e8e8; }
.button:active { transform: scale(0.96); }

/* ---------- the fixed header takes the chapter's ink ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 10; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--margin); color: var(--white); }
.nav__name { font-family: var(--font-display); font-weight: 900; font-size: var(--step-body); letter-spacing: -0.02em; text-decoration: none; }
.nav__right { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.6rem); }
.nav__link { text-decoration: none; font-weight: 500; font-size: var(--step-body); }
.nav__link:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.account__name:not(:empty)::before { content: ', '; }
.nav__buy { padding: 0.55em 1.1em; background: var(--white); color: var(--blue); }

/* ---------- chapters ---------- */
.chapter { padding: 0 var(--margin); }

/* ---------- hero ---------- */
.hero { background: var(--blue); color: var(--white); min-height: 100svh; padding-top: 112px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.statement { font-size: var(--step-display); line-height: 0.86; letter-spacing: -0.035em; max-width: 14ch; }
.statement__pale { color: var(--white); }
.statement__dark { color: var(--black); }
.hero__row { display: grid; grid-template-columns: 5fr 7fr; gap: 2rem; align-items: start; margin-top: clamp(1.5rem, 4vh, 3rem); flex: 1; }
.hero__copy { max-width: 36ch; padding-top: clamp(0.5rem, 2vh, 1.5rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero__clip { width: 110%; justify-self: end; transform: rotate(3deg); transform-origin: top left; border-radius: var(--radius); overflow: hidden; background: var(--black); }
.hero__clip video { width: 100%; height: auto; }

/* ---------- 1. how: accordion of four flat panels ---------- */
.how { background: var(--white); color: var(--black); padding-top: clamp(3.5rem, 8vh, 5rem); padding-bottom: clamp(3.5rem, 8vh, 5rem); }
.how__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; align-items: start; }
.how__intro .head { grid-column: 1 / 7; }
.how__text { grid-column: 7 / 12; font-size: var(--step-lead); line-height: 1.3; padding-top: 0.4em; }
.acc { display: flex; height: 440px; margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden; color: var(--white); }
.acc__panel { position: relative; flex: 0 0 14%; min-width: 0; overflow: hidden; transition: flex-basis 450ms var(--ease-in-out); display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem; }
.acc__panel.is-open { flex-basis: 58%; }
.acc__panel--1 { background: var(--black); }
.acc__panel--2 { background: var(--navy); }
.acc__panel--3 { background: var(--blue); }
.acc__panel--4 { background: var(--red); color: var(--black); }
.acc__name { font-family: var(--font-display); font-weight: 900; font-size: var(--step-sub); line-height: 1; letter-spacing: -0.03em; text-align: left; white-space: nowrap; }
.acc__panel:not(.is-open) .acc__name { position: absolute; left: 1.75rem; bottom: 1.75rem; transform-origin: left bottom; transform: rotate(-90deg) translateY(100%); font-size: var(--step-body); }
.acc__panel:not(.is-open) .acc__text, .acc__panel:not(.is-open) .acc__clip { display: none; }
.acc__text { max-width: 36ch; font-size: var(--step-body); }
.acc__clip { position: absolute; right: -4%; top: 50%; width: 52%; transform: translateY(-50%); border-radius: 16px; overflow: hidden; }
.acc__panel.is-open .acc__text { max-width: 22ch; }

/* ---------- 2. hosts: two panels of unequal width ---------- */
.hosts { background: var(--red); color: var(--black); padding-top: clamp(4rem, 10vh, 6rem); padding-bottom: clamp(4rem, 10vh, 6rem); }
.hosts__row { display: grid; grid-template-columns: 7fr 5fr; gap: 1rem; margin-top: 3rem; }
.hosts__panel { border-radius: var(--radius); padding: 2.25rem; min-height: 28svh; display: flex; flex-direction: column; gap: 1rem; position: relative; overflow: hidden; }
.hosts__panel--logic { background: var(--black); color: var(--white); }
.hosts__panel--live { background: var(--white); color: var(--black); }
.hosts__name { font-size: var(--step-head); line-height: 0.92; letter-spacing: -0.03em; }
.hosts__panel p { max-width: 30ch; font-size: var(--step-lead); line-height: 1.3; }
.drop { margin-top: auto; width: 100%; border-radius: 16px; }
.drop[hidden] { display: none; }

/* ---------- 3. see: picture bleeding off two edges ---------- */
.see { background: var(--black); color: var(--white); padding-top: clamp(4rem, 10vh, 6rem); padding-bottom: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.see__bar { position: relative; z-index: 2; background: var(--blue); color: var(--white); border-radius: var(--radius); padding: 2.25rem; width: min(640px, 100%); }
.see__bar p { margin-top: 1rem; font-size: var(--step-lead); line-height: 1.3; }
.see__pic { margin: clamp(2rem, 6vh, 4rem) calc(var(--margin) * -1) 0 24%; }
.see__pic img { width: 130%; max-width: none; border-radius: var(--radius) 0 0 0; }

/* ---------- 4. skins: the control, blown up ---------- */
.skins { color: var(--white); padding-top: clamp(4rem, 10vh, 6rem); padding-bottom: 0; overflow: hidden; display: flex; flex-direction: column; transition: background-color 400ms var(--ease-out), color 400ms var(--ease-out); }
.skins.is-classic { background: var(--blue); color: var(--white); }
.skins.is-clean-light { background: var(--white); color: var(--black); }
.skins.is-dracula { background: var(--black); color: var(--white); }
.skins__head p { margin-top: 1rem; font-size: var(--step-lead); }
.switch { display: inline-flex; align-self: flex-start; margin-top: clamp(2rem, 5vh, 3.5rem); border-radius: 999px; padding: 0.5rem; background: var(--white); color: var(--black); gap: 0.25rem; }
.skins.is-clean-light .switch { background: var(--black); color: var(--white); }
.switch__seg { font-family: var(--font-display); font-weight: 900; font-size: var(--step-sub); letter-spacing: -0.03em; line-height: 1; padding: 0.55em 0.9em; border-radius: 999px; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 140ms var(--ease-out); }
.switch__seg:active { transform: scale(0.96); }
.switch__seg[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.skins.is-clean-light .switch__seg[aria-pressed="true"] { background: var(--white); color: var(--black); }
.skins.is-dracula .switch__seg[aria-pressed="true"] { background: var(--red); color: var(--black); }
.skins__pic { margin: clamp(2rem, 6vh, 4rem) calc(var(--margin) * -1) 0 auto; width: 72%; }
.skins__pic img { width: 100%; border-radius: var(--radius) 0 0 0; }

/* ---------- 5. more: capabilities at poster scale ---------- */
.more { background: var(--navy); color: var(--white); padding-top: 9vh; padding-bottom: 9vh; }
.more__list { display: flex; flex-direction: column; gap: 0.35em; font-size: var(--step-head); }
.more__row { display: grid; grid-template-columns: 8fr 4fr; column-gap: 2rem; align-items: first baseline; }
.more__name { font-family: var(--font-display); font-weight: 900; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.more__row--head .more__name { font-weight: 500; font-family: var(--font-text); letter-spacing: -0.02em; }
.more__row dd { font-size: var(--step-body); line-height: 1.45; }
.more__row:hover .more__name { color: var(--red); }

/* ---------- pricing: the price, very large, on one panel ---------- */
.price { background: var(--white); color: var(--black); padding-top: clamp(1.5rem, 4vh, 3rem); padding-bottom: clamp(1.5rem, 4vh, 3rem); }
.price__panel { background: var(--black); color: var(--white); border-radius: var(--radius); min-height: 56svh; padding: clamp(2rem, 4vw, 4rem); display: grid; grid-template-columns: 4fr 8fr; column-gap: 3rem; align-items: center; }
.price__head { font-family: var(--font-display); font-weight: 900; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; }
.price__copy p + p, .price__copy p { margin-top: 1rem; max-width: 30ch; }
.price__copy .price__head { margin-top: 0; }
.price__figure { position: relative; }
.price__amount { display: flex; align-items: baseline; gap: 0.3em; }
.price__num { font-family: var(--font-display); font-weight: 900; font-size: var(--step-display); line-height: 0.85; letter-spacing: -0.05em; }
.price__period { font-size: var(--step-body); font-weight: 500; }
.price__mini { position: absolute; right: 0; top: -12%; width: 46%; max-width: 440px; transform: rotate(-4deg); }
.price__lines { margin-top: 2rem; font-size: var(--step-body); line-height: 1.5; }
.price__actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.75rem; }
.price__try { font-weight: 500; text-underline-offset: 0.2em; }
.price__ownedline { font-weight: 500; }
.price .button--black { background: var(--white); color: var(--black); }
.price .button--black:hover { background: #e8e8e8; }

/* ---------- faq: filled tiles ---------- */
.faq { background: var(--white); color: var(--black); padding-top: clamp(3.5rem, 8vh, 5rem); padding-bottom: clamp(3.5rem, 8vh, 5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; align-items: start; }
.faq__head { grid-column: 1 / 5; }
.faq__tiles { grid-column: 5 / 13; display: flex; flex-direction: column; gap: 8px; }
.tile { background: var(--surface); border-radius: var(--radius); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.tile summary { list-style: none; cursor: pointer; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; font-size: var(--step-lead); font-weight: 500; }
.tile summary::-webkit-details-marker { display: none; }
.tile summary::after { content: ''; flex: 0 0 16px; height: 16px; background: linear-gradient(currentColor, currentColor) center / 16px 3px no-repeat, linear-gradient(currentColor, currentColor) center / 3px 16px no-repeat; transition: transform 240ms var(--ease-out); } /* taste-skill-ignore: a plus sign drawn from two bars, the blueprint's own */
.tile[open] { background: var(--blue); color: var(--white); }
.tile[open] summary::after { transform: rotate(45deg); }
.tile p { padding: 0 1.5rem 1.5rem; max-width: 52ch; }

/* ---------- footer: invitation over the cropped name ---------- */
.foot { background: var(--black); color: var(--white); padding-top: clamp(4rem, 10vh, 6rem); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.foot__top { display: grid; grid-template-columns: 7fr 2fr 3fr; column-gap: 2rem; align-items: start; }
.foot__invite .head { max-width: 12ch; }
.foot__invite .button { margin-top: 1.5rem; }
.foot__links { grid-column: 3; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.5rem; }
.foot__links a { text-decoration: none; font-weight: 500; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.foot__line { margin-top: auto; padding-top: 3rem; font-size: var(--step-small); }
.foot__mark { font-family: var(--font-display); font-weight: 900; font-size: 28vw; line-height: 0.8; letter-spacing: -0.05em; white-space: nowrap; transform: translateY(30%); margin-top: 0.5rem; }

/* ---------- the thank-you moment: a flat blue field over the page ---------- */
.thanks { position: fixed; inset: 0; z-index: 20; background: var(--blue); color: var(--white); overflow: auto; display: grid; align-items: center; padding: var(--margin); }
.thanks__inner { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; padding-top: 3rem; }
.thanks__close { position: absolute; top: 0; right: 0; font-family: var(--font-display); font-weight: 900; font-size: var(--step-body); padding: 0.55em 1.1em; border-radius: 999px; background: var(--white); color: var(--blue); transition: transform 140ms var(--ease-out); }
.thanks__close:active { transform: scale(0.96); }
.thanks__title { max-width: none; }
.thanks__lead { margin-top: clamp(1.25rem, 3vh, 2rem); max-width: 34ch; }
.thanks__lead a { text-underline-offset: 0.2em; }
.thanks__download { margin-top: 1.5rem; }
.thanks__steps { margin: clamp(2rem, 6vh, 3.5rem) 0 0; padding: 0 0 0 1.4em; max-width: 36ch; font-size: var(--step-lead); line-height: 1.3; font-family: var(--font-display); font-weight: 900; letter-spacing: -0.02em; }
.thanks__steps li { padding-left: 0.3em; }
.thanks__steps li + li { margin-top: 0.6em; }
.thanks__steps::marker, .thanks__steps li::marker { color: var(--black); }
@media (prefers-reduced-motion: no-preference) {
  .thanks.is-on { animation: thanks-in 600ms var(--ease-expo) both; }
  .thanks.is-on .thanks__inner > * { animation: load-rise 600ms var(--ease-out) both; }
  .thanks.is-on .thanks__inner > :nth-child(2) { animation-delay: 80ms; }
  .thanks.is-on .thanks__inner > :nth-child(3) { animation-delay: 160ms; }
  .thanks.is-on .thanks__inner > :nth-child(4) { animation-delay: 240ms; }
  .thanks.is-on .thanks__inner > :nth-child(5) { animation-delay: 320ms; }
  @keyframes thanks-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Room for the descenders (g, p, y) inside the clipped line, without moving the lines apart. */
  .line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
  .line > [data-line] { display: block; }
  .js .hero [data-line] { transform: translateY(105%); animation: load-line 800ms var(--ease-expo) forwards; animation-delay: calc(100ms + var(--i) * 90ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(12px); animation: load-rise 500ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .hero [data-open] { clip-path: inset(0 0 100% 0); animation: load-open 1000ms var(--ease-in-out) 250ms forwards; }
  .js .hero [data-open] video { transform: scale(1.06); animation: load-settle 1100ms var(--ease-expo) 200ms forwards; }
  @keyframes load-line { to { transform: none; } }
  @keyframes load-rise { to { opacity: 1; transform: none; } }
  @keyframes load-open { to { clip-path: inset(0 0 0 0); } }
  @keyframes load-settle { to { transform: none; } }

  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .foot__mark { transform: translateY(40%); transition: transform 1200ms var(--ease-expo); }
  .js .foot__mark.is-in { transform: translateY(30%); }
}

/* ---------- phone and tablet ---------- */
@media (max-width: 900px) {
  .nav { height: 56px; }
  .nav__link { display: none; }
  .nav__account { display: inline; }
  .hero { min-height: 0; padding-top: 88px; padding-bottom: 0; }
  .statement { font-size: clamp(2.75rem, 11.3vw, 5.5rem); max-width: none; }
  .hero__row { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.25rem; }
  .hero__clip { width: calc(100% + var(--margin) * 2); justify-self: start; transform: none; border-radius: var(--radius) 0 0 0; margin-top: 1rem; }

  .how__intro { display: block; }
  .how__text { margin-top: 1rem; padding-top: 0; }
  .acc { flex-direction: column; height: auto; margin-top: 2.5rem; }
  .acc__panel { flex: 0 0 auto; min-height: 64px; padding: 1.25rem; justify-content: flex-start; gap: 0.75rem; }
  .acc__panel:not(.is-open) .acc__name { position: static; transform: none; font-size: var(--step-body); }
  .acc__name { font-size: var(--step-lead); }
  .acc__clip { position: static; width: 100%; transform: none; margin-top: 0.5rem; }
  .acc__panel.is-open .acc__text { max-width: none; }

  .hosts__row { grid-template-columns: 1fr; }
  .hosts__panel { min-height: 0; padding: 1.5rem; }

  .see { min-height: 0; }
  .see__bar { padding: 1.5rem; }
  .see__pic { margin: 2rem calc(var(--margin) * -1) 0 0; }
  .see__pic img { width: 170%; border-radius: 0; }

  .skins { min-height: 0; }
  .switch { flex-wrap: wrap; align-self: stretch; }
  .switch__seg { font-size: var(--step-lead); flex: 1 1 auto; text-align: center; }
  .skins__pic { width: calc(100% + var(--margin) * 2); margin: 2rem calc(var(--margin) * -1) 0 0; }
  .skins__pic img { border-radius: var(--radius) 0 0 0; }

  .more { padding-top: 5rem; padding-bottom: 5rem; }
  .more__row { grid-template-columns: 1fr; row-gap: 0.4rem; margin-bottom: 1.25rem; }
  .more__name { font-size: var(--step-head); }
  .more__row dd { padding-left: var(--margin); }

  .price__panel { grid-template-columns: 1fr; row-gap: 2rem; min-height: 0; padding: 1.5rem; }
  .price__num { font-size: var(--step-display); }
  .price__mini { width: 40%; top: -6%; }
  .price__actions { flex-direction: column; align-items: stretch; }
  .price__actions .button { text-align: center; }

  .faq { display: block; }
  .hero__copy, .hosts__panel p, .see__bar p, .more__row dd, .price__copy p, .tile p, .acc__panel.is-open .acc__text { max-width: none; }
  .faq__head { position: static; }
  .faq__tiles { margin-top: 1.5rem; gap: 6px; }
  .tile summary { font-size: var(--step-body); min-height: 64px; }

  .foot { min-height: 0; padding-top: 5rem; }
  .foot__top { grid-template-columns: 1fr; row-gap: 2rem; }
  .foot__links { grid-column: auto; flex-direction: row; gap: 1.25rem; }
  .foot__invite .button { width: 100%; text-align: center; }
  .foot__mark { font-size: 48vw; }
}

/* tablet: pictures end on the page margin; the phone keeps its bleeds */
@media (min-width: 600px) and (max-width: 900px) {
  .hero__clip { width: 100%; border-radius: var(--radius); }
  .see__pic { margin: 2rem 0 0 0; }
  .see__pic img { width: 100%; border-radius: var(--radius); }
  .skins__pic { width: 100%; margin: 2rem 0 0 0; }
  .skins__pic img { border-radius: var(--radius); }
}
