/* AABB — Fresh Socks Service.
   Design language: white ground, black mono type, heavy condensed headlines,
   electric blue accent, bracketed labels. */

:root {
  --black: #111111;
  --white: #ffffff;
  --grey: #f2f2f2;
  --blue: #1226f9;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Anton', 'Arial Narrow', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: var(--white); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px;
  z-index: 100;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.header-left {
  background: var(--black);
  padding: 10px 14px;
}
.wordmark {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .04em;
  color: var(--white);
  text-decoration: none;
}
.header-sub {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: .02em;
  color: #bbb;
}
.header-sub b { color: var(--white); }

.menu-toggle {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--black);
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 12px 14px;
}
.menu-toggle:hover { background: var(--blue); }

.menu[hidden] { display: none; }

.menu {
  position: fixed;
  top: 74px; right: 24px;
  z-index: 99;
  background: var(--black);
  display: flex;
  flex-direction: column;
  min-width: 240px;
}
.menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 14px 18px;
  border-bottom: 1px solid #2a2a2a;
}
.menu a:hover { background: #1d1d1d; }
.menu a.menu-cta { background: var(--blue); }
.menu a.menu-cta:hover { background: #0e1cc4; }

/* ---------- landing ---------- */
body.landing {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.landing-main {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: 58% 42%;
}

.split-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.split-half {
  display: flex;
  align-items: center;
  overflow: hidden;
}
.split-half span {
  font-family: var(--display);
  font-size: clamp(120px, 24vw, 380px);
  line-height: 1;
  letter-spacing: .01em;
  transform: translateY(4%);
}
.split-black {
  background: var(--black);
  color: var(--white);
  justify-content: flex-end;
}
.split-white {
  background: var(--white);
  color: var(--black);
  justify-content: flex-start;
}

.landing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 20px 24px 40px;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 76px);
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.landing-sub {
  font-size: clamp(13px, 1.3vw, 17px);
  font-weight: 500;
  letter-spacing: .1em;
}

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  padding: 18px 44px;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--black); }

.landing-note {
  font-size: 11px;
  letter-spacing: .14em;
  color: #666;
}

/* ---------- sections (plans / checkout / sock) ---------- */
.section {
  padding: 110px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-first { padding-top: 150px; }

.section-dark {
  max-width: none;
  background: var(--black);
  color: var(--white);
}
.section-dark > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

.crumb {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: #888;
  margin-bottom: 28px;
}
.crumb b { color: var(--white); }
.crumb a { color: #888; text-decoration: none; }
.crumb a:hover { color: var(--white); }

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: .98;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-intro {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
  margin-bottom: 60px;
  line-height: 1.9;
}
.section-dark .section-intro { color: #aaa; }

/* ---------- plans ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plan {
  font-family: var(--mono);
  text-align: left;
  text-decoration: none;
  background: var(--black);
  color: var(--white);
  border: 1px solid #3a3a3a;
  padding: 28px 24px 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .15s;
}
.plan:hover { border-color: var(--blue); outline: 3px solid var(--blue); }

.plan-featured { background: #1a1a1a; }

.plan-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--blue);
}
.plan-featured .plan-tag { color: #7c88ff; }

.plan-pairs {
  font-family: var(--display);
  font-size: 52px;
  line-height: 1;
  text-transform: uppercase;
}
.plan-price { font-size: 24px; font-weight: 700; }
.plan-price em { font-style: normal; font-size: 13px; color: #999; }
.plan-desc { font-size: 13px; color: #bbb; flex: 1; }
.plan-select {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}
.plan:hover .plan-select { color: var(--blue); }
.plan-featured:hover .plan-select { color: #7c88ff; }

/* ---------- specs / the sock ---------- */
.specs { border-top: 3px solid var(--black); }
.spec {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}
.spec-key { font-weight: 700; letter-spacing: .1em; }
.spec-val { letter-spacing: .04em; }

.certs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.cert {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  border: 2px solid var(--black);
  padding: 10px 16px;
}

.sock-note {
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 2;
  color: #555;
  max-width: 760px;
}

/* ---------- checkout form ---------- */
.sub-form {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row-wide { grid-column: 1 / -1; }
.form-row label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #999;
}
.form-row input,
.form-row select {
  font-family: var(--mono);
  font-size: 15px;
  padding: 14px 16px;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-row input:focus, .form-row select:focus { outline: 3px solid var(--blue); }
.form-row input::placeholder { color: #999; }

.form-total {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 16px 0;
  font-size: 13px;
  letter-spacing: .1em;
  flex-wrap: wrap;
}
.form-total b { font-size: 18px; }

.btn-wide { grid-column: 1 / -1; width: 100%; }

.form-note {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: .12em;
  color: #777;
  text-align: center;
}

.form-success {
  grid-column: 1 / -1;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  letter-spacing: .06em;
  padding: 18px;
  text-align: center;
}

/* ---------- countdown (coming soon) ---------- */
.countdown {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.count-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.count-num {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 90px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.count-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: #888;
}
.count-sep {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 60px);
  color: var(--blue);
  transform: translateY(-8px);
}

.notify-form {
  display: flex;
  gap: 0;
  width: min(480px, 100%);
}
.notify-form input {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 14px;
  padding: 18px 16px;
  border: 3px solid var(--black);
  border-right: none;
  border-radius: 0;
  appearance: none;
}
.notify-form input:focus { outline: none; border-color: var(--blue); }
.notify-form .btn-primary { padding: 18px 24px; white-space: nowrap; }

/* ---------- profile / auth ---------- */
.sub-form-narrow { max-width: 520px; margin-left: 0; }

.status-line {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-size: 13px;
  letter-spacing: .12em;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 14px 0;
  margin-top: 28px;
}
.status-line b { font-size: 16px; color: var(--blue); }

.danger-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.btn-ghost {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  background: none;
  border: 2px solid #444;
  color: var(--white);
  padding: 12px 18px;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.form-error {
  grid-column: 1 / -1;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  letter-spacing: .06em;
  padding: 18px;
  text-align: center;
}

.inline-link { color: var(--blue); text-decoration: none; font-weight: 700; }
.inline-link:hover { text-decoration: underline; }

.form-note-left { text-align: left; margin-top: 20px; max-width: 640px; line-height: 2; }

.support-block {
  margin-top: 80px;
  border-top: 3px solid var(--white);
  padding-top: 40px;
}
.sub-heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.support-block .section-intro { margin-bottom: 8px; }
.form-row textarea {
  font-family: var(--mono);
  font-size: 15px;
  padding: 14px 16px;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 0;
  resize: vertical;
}
.form-row textarea:focus { outline: 3px solid var(--blue); }
.form-row textarea::placeholder { color: #999; }

#profile-view .form-success,
#profile-view .form-error { margin-top: 20px; }

/* ---------- footer ---------- */
.site-footer-slim {
  background: var(--black);
  color: var(--white);
  padding: 28px 40px;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: .1em;
  color: #888;
}
.footer-meta a { color: #888; text-decoration: none; }
.footer-meta a:hover { color: var(--white); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  /* header becomes a solid full-width bar — no more chips
     floating over (and clashing with) the white half */
  .site-header {
    background: var(--black);
    padding: 12px 16px;
    align-items: center;
    pointer-events: auto;
  }
  .header-left { background: none; padding: 0; min-width: 0; }
  .wordmark { font-size: 15px; }
  .header-sub {
    font-size: 10px;
    margin-top: 2px;
    max-width: 62vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .menu-toggle {
    background: none;
    padding: 8px 0 8px 12px;
    font-size: 15px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .menu-toggle:hover { background: none; color: var(--blue); }
  .menu {
    top: 63px;
    left: 0;
    right: 0;
    min-width: 0;
    border-top: 1px solid #2a2a2a;
  }
  .menu a { padding: 17px 20px; }

  /* landing: scrollable, generous spacing */
  body.landing { height: auto; overflow: auto; }
  .landing-main {
    height: auto;
    min-height: 100dvh;
    grid-template-rows: max(42vh, 320px) auto;
  }
  .split-half { padding-top: 56px; }
  .split-half span { font-size: clamp(80px, 30vw, 170px); }
  .landing-copy { padding: 56px 24px 72px; gap: 26px; }
  h1 { font-size: clamp(36px, 10vw, 56px); }
  .landing-sub { font-size: 13px; line-height: 2; }
  .landing-copy .btn-primary { width: 100%; max-width: 420px; }
  .landing-note { line-height: 2; }

  .countdown { gap: 12px; }
  .count-num { font-size: clamp(42px, 12vw, 68px); }
  .count-sep { font-size: clamp(24px, 7vw, 42px); transform: translateY(-6px); }

  .notify-form { flex-direction: column; gap: 14px; }
  .notify-form input { border-right: 3px solid var(--black); padding: 16px; }

  /* sections: more air */
  .section { padding: 96px 20px; }
  .section-first { padding-top: 130px; }
  .section-intro { line-height: 2.1; margin-bottom: 48px; }
  .plans { grid-template-columns: 1fr; gap: 20px; }
  .plan { padding: 26px 20px 22px; }
  .sub-form { grid-template-columns: 1fr; gap: 24px; }
  .form-total { gap: 10px 16px; }
  .spec { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .certs { gap: 10px; }
  .danger-row { flex-direction: column; align-items: stretch; }
  .btn-ghost { padding: 15px 18px; text-align: center; }
  .support-block { margin-top: 64px; }
  .footer-meta { justify-content: center; text-align: center; gap: 12px; }
}
