@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  color-scheme: light;
  --ink: #173b31;
  --ink-soft: #45655c;
  --paper: #f4f1e7;
  --paper-deep: #e9e5d8;
  --mint: #cde6d5;
  --mint-light: #e5f1e6;
  --coral: #ff7b61;
  --line: rgba(23, 59, 49, 0.18);
  --shadow: 0 24px 70px rgba(23, 59, 49, 0.12);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(205, 230, 213, 0.65), transparent 26rem),
    var(--paper);
  color: var(--ink);
}

button,
textarea,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  padding: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.brand-mark i {
  display: block;
  border-radius: 4px;
  background: var(--mint);
}

.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 11px; }

.lab-link {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.hero {
  min-height: 660px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 84px 48% 100px 4%;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 123, 97, 0.16);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.045em;
}

h1 {
  max-width: 690px;
  margin-bottom: 26px;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 500;
  line-height: 0.88;
}

h1 em {
  color: var(--coral);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 1.14rem;
  line-height: 1.65;
}

.hero-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 15px 19px 15px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-cta span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
}

.hero-card {
  width: min(430px, 40%);
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%) rotate(2.5deg);
  padding: 22px;
  border: 1px solid rgba(23, 59, 49, 0.12);
  border-radius: 28px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.sample-user {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sample-user > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.sample-user strong {
  font-size: 0.88rem;
}

.sample-user small {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.sample-user b {
  margin-left: auto;
  letter-spacing: 0.2em;
}

.sample-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.3rem;
}

.sample-avatar.coral { background: #ffd2c8; }
.sample-avatar.blue { background: #cbdfe7; }

.shield-card,
.preview-notice {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid rgba(23, 59, 49, 0.2);
  border-radius: 18px;
  background: var(--mint-light);
}

.shield-card > span:nth-child(2),
.preview-notice > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.shield-card small,
.preview-notice small {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.shield-card button,
.preview-notice button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
}

.shield-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
  color: var(--mint);
  font-size: 1.1rem;
}

.still-following {
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.still-following span {
  margin-right: 7px;
  color: #14875c;
}

.maker,
.result {
  margin-inline: -24px;
  border-radius: 36px;
}

.maker {
  padding: 82px 7%;
  background: var(--ink);
  color: #f7f3e9;
}

.maker-intro,
.result-copy {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
}

.maker-intro {
  max-width: 760px;
  margin-bottom: 54px;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.72rem;
}

.maker .section-kicker {
  color: var(--mint);
}

.maker h2,
.result h2,
.how-it-works h2 {
  margin-bottom: 14px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.5rem, 4.5vw, 4.6rem);
  font-weight: 400;
  line-height: 0.98;
}

.maker-intro p:last-child,
.result-copy p:last-child {
  color: rgba(247, 243, 233, 0.67);
  line-height: 1.6;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(390px, 1.12fr);
  gap: 28px;
  align-items: start;
}

#guard-form,
.preview {
  border-radius: 24px;
  background: #f8f5ec;
  color: var(--ink);
}

#guard-form {
  padding: 30px;
}

.field-label,
fieldset legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 11px;
  font-size: 0.85rem;
  font-weight: 700;
}

.field-label small {
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 500;
}

textarea {
  width: 100%;
  min-height: 142px;
  resize: vertical;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #fffdf7;
  color: var(--ink);
  line-height: 1.55;
}

textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 59, 49, 0.1);
}

fieldset {
  margin: 26px 0 28px;
  padding: 0;
  border: 0;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.switch-row > span {
  display: grid;
  gap: 3px;
}

.switch-row strong {
  font-size: 0.83rem;
}

.switch-row small {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.switch-row input {
  position: absolute;
  opacity: 0;
}

.switch-row i {
  width: 42px;
  height: 24px;
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  border-radius: 999px;
  background: #c9cdc7;
  transition: background 160ms ease;
}

.switch-row i::after {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: transform 160ms ease;
}

.switch-row input:checked + i {
  background: var(--ink);
}

.switch-row input:checked + i::after {
  transform: translateX(18px);
}

.switch-row input:focus-visible + i {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

.build-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 17px 19px;
  border: 0;
  border-radius: 12px;
  background: var(--coral);
  color: #2a2b22;
  font-weight: 700;
  cursor: pointer;
}

.privacy-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  text-align: center;
}

.privacy-note span {
  color: #14875c;
}

.preview {
  padding: 30px;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-head h3 {
  margin-bottom: 18px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}

.preview-stats {
  width: 62px;
  height: 62px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--mint);
  text-align: center;
}

.preview-stats strong {
  font-size: 1.1rem;
}

.preview-stats span {
  font-size: 0.6rem;
  text-transform: uppercase;
}

.preview-post {
  min-height: 156px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fffdf7;
}

.preview-post + .preview-post {
  margin-top: 13px;
}

.preview-post p {
  margin: 13px 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

.preview-notice {
  min-height: 116px;
  margin: 0;
}

.preview-notice[hidden],
.preview-body[hidden] {
  display: none;
}

.fake-media {
  height: 72px;
  display: flex;
  align-items: end;
  padding: 12px;
  border-radius: 10px;
  overflow: hidden;
}

.fake-media span {
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.motion-media {
  background: repeating-linear-gradient(115deg, #ff8068 0 15px, #f8d14b 15px 30px, #438a74 30px 45px);
}

.quiet-media {
  background:
    linear-gradient(135deg, transparent 45%, rgba(23, 59, 49, 0.16) 46% 48%, transparent 49%),
    #d9d5cc;
}

.preview-foot {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  text-align: center;
}

.result {
  margin-top: 28px;
  padding: 70px 7%;
  background: var(--coral);
}

.result-copy {
  max-width: 820px;
}

.result-copy p:last-child {
  color: rgba(23, 59, 49, 0.72);
}

.install-panel {
  display: flex;
  gap: 12px;
  margin: 36px 0 16px 70px;
}

.install-link,
.copy-button {
  padding: 16px 20px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  font-weight: 700;
}

.install-link {
  min-width: 250px;
  display: flex;
  justify-content: space-between;
  background: var(--ink);
  color: white;
  text-decoration: none;
  cursor: grab;
}

.copy-button {
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.status {
  margin: 0 0 0 70px;
  color: rgba(23, 59, 49, 0.72);
  font-size: 0.72rem;
}

.how-it-works {
  padding: 120px 5%;
}

.how-it-works > div {
  max-width: 720px;
}

.how-it-works ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 54px 0 36px;
  padding: 0;
  list-style: none;
}

.how-it-works li {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.how-it-works li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--mint);
  font-size: 0.7rem;
  font-weight: 700;
}

.how-it-works li strong {
  display: block;
  margin-bottom: 9px;
}

.how-it-works li p,
.caveat {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

.caveat {
  max-width: 780px;
  padding-left: 16px;
  border-left: 3px solid var(--coral);
}

footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 100px 3% 80px;
  }

  .hero-card {
    width: min(540px, 100%);
    position: relative;
    right: auto;
    top: auto;
    transform: rotate(1deg);
    margin: 60px auto 0;
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1240px);
  }

  .site-header {
    height: 72px;
  }

  .lab-link {
    max-width: 130px;
    text-align: right;
  }

  .hero {
    padding: 76px 8px 66px;
  }

  h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-card {
    padding: 17px;
  }

  .shield-card {
    align-items: flex-start;
  }

  .shield-card button {
    display: none;
  }

  .maker,
  .result {
    margin-inline: -4px;
    border-radius: 24px;
  }

  .maker {
    padding: 55px 18px;
  }

  .maker-intro,
  .result-copy {
    grid-template-columns: 1fr;
  }

  .step-number {
    margin-bottom: 4px;
  }

  .workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  #guard-form,
  .preview {
    padding: 20px;
  }

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

  .switch-row strong {
    font-size: 0.78rem;
  }

  .preview-notice {
    flex-wrap: wrap;
  }

  .result {
    padding: 55px 22px;
  }

  .install-panel {
    flex-direction: column;
    margin-left: 0;
  }

  .status {
    margin-left: 0;
  }

  .how-it-works {
    padding: 88px 8px;
  }

  .how-it-works ol {
    grid-template-columns: 1fr;
  }

  .how-it-works li {
    display: grid;
    grid-template-columns: 42px 1fr;
  }

  .how-it-works li > span {
    grid-row: 1 / 3;
    margin: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
