/* Editorial presentation layer for the Conform landing pages.
   The inline styles remain as a structural fallback; this file owns the visual language. */

:root {
  --blue: #d5281b;
  --blue-light: #d5281b;
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --line: #b8b8b8;
  --ink: #0b0b0b;
  --sub: #555555;
  --danger: #d5281b;
  --ok: #006b45;
  --display: "Iowan Old Style", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

body {
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
}

.wrap {
  max-width: 1180px;
  padding-inline: 34px;
}

header {
  padding: 13px 0;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: none;
  border-color: var(--ink);
}

.brand {
  gap: 12px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand svg {
  width: 26px;
  height: 26px;
}

.brand svg rect,
.flow > svg rect {
  fill: var(--ink);
}

.navlinks {
  gap: 20px;
  margin-left: 38px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.brand .lang {
  margin-left: 16px;
}

.mobile-menu {
  display: none;
  position: relative;
  flex: none;
}

.mobile-menu summary {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--bg);
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  list-style: none;
  user-select: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary::after {
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.mobile-menu[open] summary {
  color: var(--bg);
  background: var(--ink);
}

.mobile-menu[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(280px, calc(100vw - 44px));
  border: 1px solid var(--ink);
  background: var(--bg);
  box-shadow: 8px 8px 0 rgba(11, 11, 11, .16);
  z-index: 30;
}

.mobile-menu nav a {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.mobile-menu nav a:last-child {
  border-bottom: 0;
}

.mobile-menu nav a:hover,
.mobile-menu nav a:focus-visible {
  color: var(--blue);
  background: #f4f4f4;
  outline: none;
}

.navlinks a,
.brand .lang a {
  color: var(--sub);
}

.navlinks a:hover,
.brand .lang a:hover {
  color: var(--blue);
}

.navcta,
.cta {
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  box-shadow: none;
  color: var(--bg);
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .03em;
  transition: background .15s ease, color .15s ease;
}

.navcta {
  padding: 8px 14px;
  font-size: 11px;
}

.cta {
  padding: 14px 24px;
  font-size: 13px;
}

.navcta:hover,
.cta:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: none;
}

.hero {
  padding: 92px 0 84px;
  text-align: left;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
}

.hero .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 28px;
}

.hero h1 {
  grid-column: 1 / 12;
  max-width: 1050px;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.035em;
}

h1 {
  margin-bottom: 32px;
  font-size: clamp(52px, 7.6vw, 96px);
  line-height: 1.08;
}

.headline-line,
.lead-line,
.cta-note-line {
  display: block;
}

.headline-line {
  line-height: 1.04;
}

.headline-line + .headline-line {
  margin-top: .08em;
}

h1 .em {
  color: var(--ink);
  border-bottom: 0;
  background: linear-gradient(var(--blue), var(--blue)) no-repeat 0 88% / 100% .08em;
  -webkit-text-fill-color: currentColor;
}

.lead {
  grid-column: 1 / 10;
  max-width: 860px;
  margin: 0 0 28px;
  color: var(--sub);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.flow {
  grid-column: 1 / 9;
  justify-content: flex-start;
  gap: 10px;
  margin: 4px 0 30px;
}

.flow .app {
  gap: 0;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.flow .tile {
  display: none;
}

.flow .arrow {
  color: var(--blue);
}

.flow > svg {
  width: 27px;
  height: 27px;
}

.hero > .wrap > .cta {
  grid-column: 1 / 4;
  justify-self: start;
}

.hero .cta-note {
  grid-column: 4 / 9;
  align-self: center;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.hero .cta-note .cta-note-line + .cta-note-line {
  margin-top: 3px;
}

.honest {
  grid-column: 3 / 11;
  max-width: none;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border: 0;
  border-top: 5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  gap: 14px;
}

.honest p {
  color: var(--sub);
  font-size: 14px;
}

.honest strong {
  color: var(--ink);
}

.hero .shot {
  grid-column: 1 / 11;
  align-self: start;
  margin: 64px 0 0 !important;
}

.shot {
  margin-top: 24px;
  padding: 7px 7px 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
}

.shot figcaption {
  padding: 9px 4px 10px;
  border: 0;
  color: #bcb7ad;
  font-family: var(--mono);
  font-size: 10.5px;
}

.app-body-shot {
  overflow: hidden;
}

.app-body-shot img {
  margin-top: -9.333%;
}

section {
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}

section[id],
h2[id] {
  scroll-margin-top: 76px;
}

section.alt {
  background: var(--bg-alt);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(38px, 5.1vw, 58px);
  line-height: 1.14;
}

.h2sub {
  max-width: 720px;
  margin-bottom: 42px;
  color: var(--sub);
  font-size: 14px;
}

.step {
  grid-template-columns: 250px 1fr;
  gap: 54px;
  padding: 48px 0;
  border-color: var(--ink);
}

.step-n,
.scene .tag {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
}

.step-text h3,
.scene h3,
.rule h3 {
  font-size: 18px;
  letter-spacing: -.01em;
}

.step-text p,
.scene p,
.rule p,
.maker p,
details.qa p {
  color: var(--sub);
}

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

.scene {
  padding: 18px 0 0;
  border: 0;
  border-top: 4px solid var(--ink);
  border-radius: 0;
  background: transparent;
}

.rules {
  border-color: var(--ink);
}

.rule {
  gap: 34px;
  padding: 34px 0;
  border-color: var(--ink);
}

.rule > div {
  min-width: 0;
  max-width: 76ch;
}

.rule .n {
  width: 64px;
  color: var(--blue);
  background: none;
  font-family: var(--mono);
  font-size: 26px;
  -webkit-text-fill-color: currentColor;
}

details.fold {
  margin-top: 28px;
  border: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
}

details.fold > summary {
  padding: 17px 0;
  font-size: 14px;
}

details.fold > summary::after,
details.qa summary::after {
  color: var(--blue);
  font-family: var(--mono);
}

.foldbody {
  padding: 24px 0 28px;
  border-color: var(--line);
}

.proof,
.scopetable {
  border: 1px solid var(--ink);
  border-radius: 0;
}

table {
  font-size: 14px;
}

th,
td {
  border-color: var(--line);
}

th,
#scope th {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .05em;
}

.term {
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #1b1b17;
  color: #bdb8ad;
}

.term b {
  color: #f3f0e8;
}

.price-stack {
  max-width: 720px;
  margin-bottom: 32px;
  border: 0;
  border-top: 5px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
}

.price-row {
  padding: 18px 4px;
  border-color: var(--line);
}

.price-row .what,
.price-row .amount {
  font-family: var(--mono);
}

.price-row .what {
  font-size: 13px;
}

.price-row .amount {
  font-size: 21px;
  line-height: 1.25;
  text-align: right;
}

.price-detail {
  display: block;
  margin-top: 4px;
  color: var(--sub);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
}

.promise {
  max-width: 720px;
  margin: -4px auto 22px;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 3px solid var(--blue);
  border-radius: 0;
  background: transparent;
  color: var(--sub);
  font-size: 13px;
  text-align: left;
}

.maker {
  max-width: 860px;
  margin-top: 30px;
  padding-left: 28px;
  border-color: var(--blue);
  border-left-width: 5px;
  gap: 18px;
}

.maker a,
.honest a,
.promise a,
.note a {
  color: var(--blue);
}

details.qa {
  padding: 20px 0;
  border-color: var(--ink);
}

details.qa:first-of-type {
  border-top: 1px solid var(--ink);
}

details.qa summary {
  font-size: 15px;
}

.center .cta {
  display: inline-block;
}

.trial-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 24px;
}

.trial-actions .purchase-cta {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

#trial > .wrap > .note {
  max-width: 78ch;
  margin: 0 auto;
  font-size: 13.5px;
  line-height: 1.75;
}

.note-line {
  display: block;
}

footer {
  padding: 42px 0 52px;
  border-color: var(--ink);
  color: var(--sub);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.8;
}

footer a {
  text-underline-offset: 3px;
}

@media (max-width: 1120px) {
  .navlinks {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero h1 {
    grid-column: 1 / 13;
  }

  .hero .lead,
  .hero .flow {
    grid-column: 1 / 10;
  }

  .hero .cta-note {
    grid-column: 4 / 11;
  }
}

@media (max-width: 820px) {
  .wrap {
    padding-inline: 22px;
  }

  .hero {
    padding: 64px 0 58px;
  }

  .hero .wrap {
    display: block;
  }

  h1 {
    font-size: clamp(44px, 13vw, 72px);
  }

  .lead {
    font-size: 17px;
  }

  .flow {
    justify-content: flex-start;
  }

  .hero > .wrap > .cta {
    display: inline-block;
  }

  .hero .cta-note {
    margin-top: 14px;
  }

  .honest,
  .hero .shot {
    margin-top: 54px !important;
  }

  section {
    padding: 62px 0;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 34px 0;
  }

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

  .rule {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  header {
    position: sticky;
  }

  section[id],
  h2[id] {
    /* Keep anchored headings below the sticky mobile header. */
    scroll-margin-top: 76px;
  }

  .brand {
    font-size: 14px;
  }

  .brand .lang {
    margin-left: auto;
    font-size: 11px;
  }

  .mobile-menu {
    margin-left: 2px;
  }

  .navcta {
    display: none;
  }

  h1 {
    font-size: 43px;
    line-height: 1.12;
  }

  h2 {
    font-size: 36px;
  }

  .flow {
    gap: 7px;
  }

  .flow .app {
    padding: 5px 7px;
    font-size: 9.5px;
  }

  .flow > svg {
    width: 23px;
    height: 23px;
  }

  .cta {
    width: 100%;
    text-align: center;
  }

  .rule {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
  }

  .rule .n {
    width: auto;
    font-size: 20px;
  }

  .price-row {
    display: block;
    text-align: left;
  }

  .price-row .what {
    display: block;
    max-width: none;
  }

  .price-row .amount {
    display: block;
    margin-top: 10px;
    text-align: left;
    white-space: normal;
  }

  .trial-actions .cta {
    width: 100%;
  }

  .term {
    padding: 18px;
    font-size: 11px;
  }
}
