/* ==========================================================================
   you2you.net — landing page styles
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */

:root {
  --c-bg: #f7f6f2;
  --c-bg-dark: #1c2230;
  --c-surface: #ffffff;
  --c-surface-dark: #2e3340;
  --c-border: #c7c7c7;
  --c-border-dark: #edd6af;

  --c-heading: #030303;
  --c-text: #393a3f;
  --c-muted: #777777;
  --c-heading-invert: #fafafa;
  --c-text-invert: #c7c7c7;

  --c-accent: #828bf4;
  --c-accent-ink: #1c2230;
  --c-gold: #c89641;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
    Consolas, monospace;

  /* The original is fluid: 5% of the viewport on each side, uncapped. */
  --gutter: 5%;
  --grid-gap: 12px;
  --radius: 10px;
  --radius-pill: 30px;

  --section-y: 100px;
  --header-h: 90px;
}

/* --- Reset -------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Typography --------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  color: var(--c-heading);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(40px, 4.6vw, 65px);
  line-height: 1;
}

h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
}

h4 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
}

h5 {
  font-size: 21px;
  line-height: 1.3;
  text-transform: capitalize;
}

p {
  margin: 0;
}

/* The small monospace kicker above every section heading. */
.eyebrow {
  margin: 0 0 20px;
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
}

.eyebrow--sm {
  text-transform: uppercase;
}

/* --- Layout ------------------------------------------------------------- */

.wrap {
  width: 100%;
  padding-inline: var(--gutter);
}

/* Sections are separated by margin, not padding, so the dark contact block
   and the dark footer meet with no seam. */
.section {
  margin-top: var(--section-y);
}

.section--dark {
  margin-top: 0;
  padding-top: var(--section-y);
  background: var(--c-bg-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5 {
  color: var(--c-heading-invert);
}

.section--dark p {
  color: var(--c-text-invert);
}

.section__intro {
  padding-inline: 10px;
}

.section__intro h2 + p {
  max-width: 396px;
  margin-top: 40px;
}

.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* The two flow cards sit in a narrower band than the rest of the page. */
.grid--inset {
  max-width: 1008px;
  margin-inline: auto;
  margin-top: 40px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-bg-dark);
  color: var(--c-heading-invert);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--c-accent);
  color: var(--c-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  background: #6e78ee;
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.btn--outline:hover {
  background: var(--c-accent);
  color: var(--c-accent-ink);
}

/* The small "In closed beta" pill on the flow cards. */
.pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 7px 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--c-surface-dark);
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.site-header__inner {
  padding-inline: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.site-logo img {
  width: 120px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list a {
  color: var(--c-accent);
  font-size: 16px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--c-accent);
  border-radius: 8px;
  background: transparent;
  color: var(--c-accent);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: relative;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 4px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-4px) rotate(-45deg);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  /* The hero artwork runs off the right edge, as it does on the original. */
  overflow-x: clip;
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  min-height: 746px;
}

.hero h1 .accent {
  color: var(--c-accent);
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.hero__lead {
  max-width: 460px;
  margin-top: 24px;
}

.hero__actions {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 42px;
}

.hero__actions > .btn {
  flex: 0 0 auto;
}

.platforms {
  flex: 0 0 400px;
  width: 400px;
  padding: 15px 10px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: transparent;
  text-align: center;
}

.platforms > p {
  margin-bottom: 14px;
}

.platforms__badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.platforms__badges img {
  width: 100%;
}

.hero__media {
  width: 100%;
  justify-self: center;
}

/* On the original the artwork is a fixed 1000px that spills out of its column
   and off the right edge. Only widen it once there is room to do that without
   the image landing on top of the copy. */
@media (min-width: 1150px) {
  .hero__media {
    width: 115%;
    max-width: none;
  }
}

@media (min-width: 1440px) {
  .hero__media {
    width: 1000px;
  }
}

@media (min-width: 1025px) {
  .hero__copy {
    transform: translateY(-10px);
  }

  .hero__actions {
    margin-top: 72px;
    margin-left: 10px;
  }

  .hero__media {
    position: relative;
    left: -8px;
  }
}

.hero__media img {
  width: 100%;
}

/* --- Cards -------------------------------------------------------------- */

.card {
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.card h5,
.card__title {
  margin-bottom: 10px;
}

.card p {
  color: var(--c-text);
}

/* Stage cards ("Built on science, not scripts") sit flush, no box. */
.stage {
  padding: 10px;
}

.stage h5 {
  margin-bottom: 10px;
}

/* The two dark flow cards. */
.flow-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--c-border-dark);
  border-radius: var(--radius);
  background: var(--c-bg-dark);
}

.flow-card h4 {
  color: var(--c-bg);
  font-size: 21px;
}

.flow-card__quote {
  margin-block: 20px;
  color: var(--c-accent);
  font-style: italic;
}

.flow-card__body {
  margin-top: 16px;
  color: #b3b3b3;
}

/* Roadmap grid. */
.roadmap {
  margin-top: var(--section-y);
}

.roadmap h4 {
  margin-bottom: 30px;
  color: var(--c-muted);
  font-weight: 600;
}

.roadmap__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.roadmap__item {
  padding-bottom: 30px;
}

.roadmap__item .eyebrow {
  margin-bottom: 20px;
  color: var(--c-accent);
}

.roadmap__item p:not(.eyebrow) {
  font-weight: 700;
}

/* --- Company ------------------------------------------------------------ */

.company__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  padding-bottom: 50px;
}

.company__art {
  justify-self: center;
  width: 125px;
}

.company__intro p {
  max-width: 628px;
  color: var(--c-heading);
  margin-top: 40px;
}

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.team__location {
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--c-heading);
}

/* --- Contact / CTA ------------------------------------------------------ */

.cta {
  text-align: center;
}

.cta .eyebrow {
  color: var(--c-accent);
}

.cta h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.section--dark .cta__lead {
  max-width: 400px;
  margin: 20px auto 40px;
  color: var(--c-heading-invert);
}

.cta h2 {
  max-width: 700px;
}

/* --- Form --------------------------------------------------------------- */

.signup {
  max-width: 600px;
  margin-inline: auto;
  padding-bottom: 12px;
  text-align: left;
}

.signup__trap {
  position: absolute;
  left: -9999px;
}

.signup__field + .signup__field {
  margin-top: 20px;
}

.signup input,
.signup select {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid #dadbdd;
  border-radius: 7px;
  background: var(--c-bg);
  color: #606266;
  font-size: 16px;
  line-height: 19px;
}

.signup select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%232b2b2b' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px 8px;
  padding-right: 38px;
}

.signup input::placeholder {
  color: #a8abb1;
}

.signup input:user-invalid {
  border-color: #e0656b;
}

.signup__submit {
  width: 100%;
  margin-top: 18px;
  padding: 8px 20px;
  border-radius: 5px;
  color: #000;
  font-weight: 500;
}

.signup__submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.signup__status {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
}

.signup__status:empty {
  margin-top: 0;
}

.signup__status[data-state="error"] {
  color: #ffb0b4;
}

.signup__status[data-state="success"] {
  color: #9de8b8;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  padding-block: 40px 20px;
  background: var(--c-bg-dark);
  color: var(--c-text-invert);
}

.site-footer__inner {
  padding-inline: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.site-footer__logo img {
  width: 200px;
}

.site-footer__social {
  display: inline-flex;
  margin-top: 20px;
  color: var(--c-accent);
}

.site-footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer__copyright {
  margin-top: 20px;
  color: #696969;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__contact {
  text-align: right;
}

.site-footer__contact h5 {
  margin-bottom: 8px;
  color: var(--c-bg);
  font-size: 18px;
}

.site-footer__apps {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.site-footer__apps img {
  width: 110px;
}

/* --- Back to top -------------------------------------------------------- */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-bg-dark);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.to-top svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* --- Cookie banner ------------------------------------------------------ */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 150;
  width: min(680px, calc(100% - 32px));
  transform: translateX(-50%);
  display: none;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--c-border-dark);
  border-radius: var(--radius);
  background: var(--c-bg-dark);
  color: var(--c-text-invert);
  font-size: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.cookie-banner.is-open {
  display: flex;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cookie-banner .btn {
  padding: 9px 18px;
  font-size: 14px;
}

/* --- Legal pages -------------------------------------------------------- */

.legal {
  padding-block: 64px var(--section-y);
}

.legal__body {
  margin-inline: auto;
}

.legal__body {
  max-width: 820px;
  overflow-wrap: anywhere;
}

.legal__body h1 {
  margin-bottom: 32px;
  font-size: clamp(32px, 4.4vw, 44px);
}

.legal__body h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 24px;
}

.legal__body h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 19px;
}

.legal__body p,
.legal__body li {
  margin-bottom: 14px;
}

.legal__body ul,
.legal__body ol {
  padding-left: 22px;
}

.legal__body a {
  text-decoration: underline;
}

.legal__body table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
}

.legal__body th,
.legal__body td {
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}

.legal__body td p {
  margin-bottom: 0;
}

/* Wide tables scroll rather than pushing the page sideways. */
.table-scroll {
  overflow-x: auto;
  margin-bottom: 24px;
}

.table-scroll table {
  min-width: 520px;
  margin-bottom: 0;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --section-y: 80px;
    --gutter: 38px;
  }

  h2 {
    font-size: 38px;
  }

  h5,
  .flow-card h4 {
    font-size: 18px;
  }

  .roadmap h4 {
    font-size: 21px;
  }

  .section__intro h2 + p {
    max-width: none;
  }

  .grid--inset {
    max-width: none;
  }

  .team {
    grid-template-columns: repeat(2, 1fr);
  }

  .company__intro p {
    max-width: 326px;
  }

  .cta h2 {
    max-width: 364px;
  }

  .signup {
    max-width: 384px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 32px;
    text-align: center;
  }

  .footer-menu,
  .site-footer__apps {
    justify-content: center;
  }

  .site-footer__logo img {
    margin-inline: auto;
  }

  .site-footer__contact {
    text-align: center;
  }

  .platforms {
    flex-basis: 270px;
    width: 270px;
  }

  .company__art {
    width: 168px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hero__copy {
    align-self: start;
    padding-top: 152px;
  }

  .hero h1 {
    font-size: 50px;
    white-space: nowrap;
  }

  .hero__actions {
    margin-top: 68px;
  }

  .hero__media {
    align-self: start;
    width: 559px;
  }

  .platforms {
    padding: 11px 10px 8px;
  }

  .platforms > p {
    margin-bottom: 9px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 8px var(--gutter) 24px;
    background: var(--c-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav__list a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }

  .site-header__inner {
    padding-inline: var(--gutter);
  }

  .hero__actions {
    width: calc(200% + var(--grid-gap));
  }

  .hero__actions .btn {
    min-width: 210px;
  }

}

@media (max-width: 640px) {
  :root {
    --section-y: 64px;
    --gutter: 20px;
    --header-h: 76px;
  }

  h1,
  .hero h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  h5,
  .flow-card h4,
  .site-footer__contact h5 {
    font-size: 16px;
  }

  .roadmap h4 {
    font-size: 18px;
  }

  .grid--2,
  .grid--3,
  .roadmap__grid,
  .team {
    grid-template-columns: 1fr;
  }

  .section__intro,
  .stage {
    padding-inline: 0;
  }

  .company__intro p {
    max-width: none;
  }

  .grid--inset,
  .roadmap__grid {
    margin-inline: -10px;
  }

  .cta h2 {
    max-width: 331px;
  }

  .section--dark .cta__lead {
    max-width: 314px;
  }

  .signup {
    max-width: 300px;
  }

  .company__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 14px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 12px;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .hero__media {
    width: 100%;
    min-width: 0;
    margin-top: -20px;
  }

  .hero__media img {
    position: relative;
    left: 50%;
    width: min(745px, 212vw);
    max-width: none;
    transform: translateX(-50%);
  }

  .platforms {
    flex-basis: auto;
    width: min(340px, 100%);
  }

  .company__art {
    width: 134px;
  }

  .footer-menu {
    gap: 0 20px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions .btn {
    flex: 1;
  }
}
