/* Gridless — shared base styles */

:root {
  --bg: #fafafa;
  --ink: #000;
  --mono: Menlo, ui-monospace, SFMono-Regular, Monaco, monospace;
  --serif: "DM Serif Display", Georgia, serif;
  --body: "Inter Tight", -apple-system, Helvetica, Arial, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 29.6px;
  letter-spacing: -0.15px;
}

/* Links */
a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Utilities */
.mono-label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.dim-70 { opacity: 0.7; }
.dim-60 { opacity: 0.6; }
.dim-50 { opacity: 0.5; }
.dim-40 { opacity: 0.4; }
.dim-30 { opacity: 0.3; }

.mono-12 {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.15px;
}

.link-underline {
  display: inline-block;
  border-bottom: 2px solid currentColor;
}

.link-underline:hover {
  text-decoration: none;
}

/* Layout */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px 18px;
  border-bottom: 2px solid var(--ink);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  border-top: 2px solid var(--ink);
}

.container {
  max-width: 1156px;
  margin: 0 auto;
}

.essay-col {
  max-width: 672px;
  margin: 0 auto;
}

/* Essay page (philosophy) */
.essay-hero {
  padding: 80px 32px;
  border-bottom: 2px solid var(--ink);
}

.essay-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 0.92;
  letter-spacing: -1.4px;
  margin-top: 24px;
}

.essay-subtitle {
  max-width: 576px;
  margin-top: 24px;
  line-height: 26px;
  opacity: 0.7;
}

.essay-body {
  padding: 80px 32px;
}

.essay-body p {
  margin-top: 32px;
}

.essay-body p:first-child {
  margin-top: 0;
}

blockquote {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 33px;
  letter-spacing: normal;
  border-left: 4px solid var(--ink);
  padding-left: 36px;
  margin-top: 56px;
}

.essay-body blockquote + p {
  margin-top: 56px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 48px;
}

.essay-body .divider + p {
  margin-top: 48px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
}

.divider-dot {
  opacity: 0.4;
  line-height: 1;
}

.essay-signature {
  margin-top: 80px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 49px;
}

.essay-cta {
  margin-top: 48px;
}

.essay-cta a {
  display: inline-block;
  margin-top: 8px;
}

.hero-urgent {
  margin-bottom: 28px;
}

/* Landing page — hero */
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  border-bottom: 2px solid var(--ink);
}

.hero-copy {
  min-height: 674px;
  padding: 64px;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.1vw, 82px);
  line-height: 0.92;
  letter-spacing: -1.64px;
  max-width: 642px;
}

.hero-lede {
  max-width: 576px;
  padding: 39px 0 41px;
  font-size: 16px;
  line-height: 26px;
}

.hero-panel {
  min-height: 674px;
  padding: 64px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.panel-box {
  border: 1px solid rgba(250, 250, 250, 0.2);
  padding: 17px;
}

.panel-box + .panel-box {
  margin-top: 24px;
}

.panel-from {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.15px;
  margin-top: 8px;
}

.panel-status {
  margin-top: 8px;
}

.panel-reply {
  font-size: 14px;
  line-height: 22.75px;
  letter-spacing: -0.15px;
  margin-top: 8px;
  opacity: 0.9;
}

.panel-caption {
  max-width: 258px;
}

/* Landing page — section scaffold */
.section {
  display: grid;
  border-bottom: 2px solid var(--ink);
}

.section--what,
.section--why,
.section--beta,
.section--faq {
  grid-template-columns: 1fr 3fr;
}

.section--device {
  grid-template-columns: 3fr 5fr 4fr;
}

.section--filter {
  grid-template-columns: 2fr 3fr 3fr;
}

.section-label-col {
  padding: 48px;
  border-right: 1px solid var(--ink);
}

.section-label-col h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 36.8px;
  letter-spacing: -0.64px;
  margin-top: 8px;
  max-width: 192px;
}

.section-col {
  padding: 48px;
}

.col-rule {
  border-right: 1px solid var(--ink);
}

.section-copy p {
  font-size: 14px;
  line-height: 22.75px;
  max-width: 768px;
}

.section-copy p + p {
  margin-top: 20px;
}

/* Landing page — device mock */
.device-stage {
  width: 320px;
  max-width: 100%;
  height: 426px;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.device {
  width: 176px;
  height: 240px;
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  padding: 4px;
  display: flex;
  flex-direction: column;
}

.device-screen {
  flex: 1;
  background: #f5f5f0;
  border-bottom: 2px solid var(--ink);
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--mono);
  letter-spacing: -0.15px;
}

.d7 { font-size: 7px; line-height: 10.5px; }
.d8 { font-size: 8px; line-height: 12px; }
.d6 { font-size: 6px; line-height: 9px; }

.device-msgs {
  margin-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 7px;
}

.device-msgs .d8 {
  margin-top: 2px;
}

.device-msgs .d8 + .d8 {
  margin-top: 4px;
}

.device-screen-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 9px;
}

.device-chin {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-chin span {
  width: 48px;
  height: 4px;
  background: var(--ink);
  opacity: 0.3;
}

/* Landing page — base station mock */
.station-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.station-row {
  display: flex;
  align-items: center;
}

.station {
  width: 88px;
  height: 88px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 0 var(--ink);
  background: #f5f5f0;
  position: relative;
}

.station-led {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  animation: led-breathe 4s ease-in-out infinite;
}

@keyframes led-breathe {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .station-led { animation: none; opacity: 0.4; }
}

.station-cable {
  width: 32px;
  height: 2px;
  background: var(--ink);
  opacity: 0.3;
}

.station-phone {
  width: 64px;
  height: 128px;
  border: 4px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  position: relative;
}

.station-phone-camera {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(250, 250, 250, 0.4);
}

.station-caption {
  font-family: var(--mono);
  letter-spacing: 0.5px;
}

/* Landing page — spec list */
.spec-list > div {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 20px 0 17px;
}

.spec-list > div:first-child {
  padding-top: 0;
}

.spec-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.spec-list dt {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.5;
}

.spec-list dd {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: -0.15px;
  margin-top: 4px;
}

.spec-sub {
  display: block;
  opacity: 0.5;
}

/* Landing page — what gets through */
.list-head {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.filter-list {
  list-style: none;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.15px;
}

.filter-list li {
  display: flex;
  gap: 12px;
}

.filter-list li + li {
  margin-top: 12px;
}

.filter-list li::before {
  content: "·";
  opacity: 0.3;
}

.filter-list--held {
  opacity: 0.6;
}

.filter-list--held li::before {
  opacity: 0.4;
}

/* Landing page — why this exists */
.why-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 771px;
}

.pull-quote {
  margin-top: 40px;
  border-left: 4px solid var(--ink);
  padding: 8px 0 8px 36px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 27.5px;
  letter-spacing: -0.15px;
}

/* Landing page — beta form */
.beta-blurb {
  margin-top: 16px;
  max-width: 192px;
  opacity: 0.6;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 19.5px;
  letter-spacing: -0.15px;
  text-transform: none;
}

#beta-form {
  max-width: 512px;
  width: 100%;
}

#beta-form label {
  display: block;
  margin: 24px 0 8px;
  opacity: 0.6;
}

#beta-form label:first-of-type {
  margin-top: 0;
}

#beta-form input[type="text"],
#beta-form input[type="email"],
#beta-form textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: -0.15px;
  padding: 14px 18px;
}

#beta-form input::placeholder,
#beta-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

#beta-form textarea {
  height: 108px;
  line-height: 20px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

#beta-form button {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 16px 32px;
  width: 153px;
  cursor: pointer;
}

.form-actions p {
  max-width: 336px;
  text-transform: none;
  letter-spacing: -0.15px;
}

#form-status {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.15px;
  margin-top: 16px;
}

#form-status:empty {
  display: none;
}

/* Landing page — FAQ */
.faq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-row:last-child {
  border-bottom: 0;
}

.faq-row dt {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 19.5px;
  letter-spacing: -0.15px;
}

.faq-row dd {
  font-size: 12px;
  line-height: 19.5px;
  letter-spacing: -0.15px;
  opacity: 0.7;
  max-width: 386px;
}

.faq-row dd a {
  text-decoration: underline;
}

/* Landing page — footer nav */
.footer-nav {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  opacity: 0.6;
}

.footer-philosophy {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  padding-bottom: 3px;
}

.footer-philosophy:hover {
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero,
  .section--what,
  .section--why,
  .section--beta,
  .section--faq,
  .section--device,
  .section--filter,
  .why-cols,
  .faq-row {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 0;
    padding: 48px 24px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
    gap: 32px;
  }

  .hero-panel {
    min-height: 0;
    padding: 48px 24px;
  }

  .panel-caption {
    max-width: none;
  }

  .section-label-col {
    padding: 32px 24px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .section-col {
    padding: 32px 24px;
  }

  .col-rule {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .device-stage {
    margin: 0 auto;
  }

  .why-cols {
    gap: 24px;
  }

  .faq-row {
    gap: 8px;
    padding: 24px;
  }

  .faq-row dd {
    max-width: none;
  }

  .form-actions {
    flex-wrap: wrap;
  }

  .essay-hero,
  .essay-body {
    padding: 48px 24px;
  }

  .site-footer {
    padding: 24px;
    gap: 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .site-header > .mono-12 {
    display: none;
  }
}
