/* crema-agent.site — the site looks like the app it sells: the app's white and sidebar grey, its ink,
   its Nanum Gothic and its action colour (src/styles.css --accent-strong / --focus / --selection).
   Sections share one spine: the heading in a left column, the content to its right, like a kept note. */
:root {
  --bg: #fdfdfd;
  --bg-2: #f6f6f6;
  --ink: #202020;
  --ink-2: #454545;
  --muted: #6f6f6f;
  --line: #dedede;
  --action: #9a5527;
  --action-dark: #7c4220;
  --crema: #d99a55;
  --selection: #f6e3c8;
  --font: "Nanum Gothic", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

::selection {
  background: var(--selection);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--crema);
  outline-offset: 3px;
  border-radius: 4px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Buttons: one filled action, everything else is a link */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--action);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease-out;
}

.button:hover {
  background: var(--action-dark);
}

.button:active {
  transform: translateY(1px);
}

.button.small {
  padding: 10px 16px;
  font-size: 15px;
}

.button.quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button.quiet:hover {
  background: var(--bg-2);
}

.button[aria-disabled="true"] {
  background: var(--bg-2);
  color: var(--muted);
  cursor: default;
}

.link {
  color: var(--action);
  font-weight: 700;
  text-underline-offset: 4px;
}

.link:hover {
  color: var(--action-dark);
}

/* Header and footer */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.site-header nav a:not(.button) {
  color: var(--ink-2);
  text-decoration: none;
}

.site-header nav a:not(.button):hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  margin-top: 120px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Home: first screen. The headline runs wide; the real app screen takes most of the width and runs
   off the right edge on wide screens. */
.intro {
  padding-top: clamp(40px, 7vw, 96px);
}

.intro h1 {
  max-width: 15em;
  font-size: clamp(1.85rem, 5.6vw, 4.6rem);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.intro-body {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 48px);
}

.intro-text {
  display: grid;
  gap: 24px;
  padding-top: 4px;
}

.intro-text p {
  color: var(--ink-2);
  font-size: 1.1rem;
}

.intro-text .fine {
  color: var(--muted);
  font-size: 15px;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.screen {
  margin: 0;
}

.screen img {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px -32px rgb(32 32 32 / 28%);
}

.screen figcaption {
  max-width: 34em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (min-width: 1100px) {
  .intro .screen {
    margin-right: calc((100vw - min(100vw, 1200px)) / -2 - var(--gutter));
  }

  .intro .screen img {
    border-right: 0;
    border-radius: 14px 0 0 14px;
  }
}

/* The spine: heading on the left, content on the right */
.part {
  padding-top: clamp(72px, 10vw, 136px);
}

.part > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px clamp(28px, 5vw, 72px);
}

.part h2 {
  font-size: clamp(1.65rem, 2.9vw, 2.4rem);
  line-height: 1.3;
}

.part .side p {
  margin-top: 18px;
  color: var(--ink-2);
}

.part.grey {
  margin-top: clamp(72px, 10vw, 136px);
  padding-bottom: clamp(64px, 8vw, 112px);
  background: var(--bg-2);
}

/* The memory note, shown on the app's own grey the way it sits in the app */
.note-shot {
  margin: 0;
  justify-self: start;
  max-width: 460px;
}

.memory-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.memory-points li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.memory-body {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

/* Lists of things in two columns: name, then what it means */
.pairs {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.pairs > div {
  display: grid;
  grid-template-columns: minmax(8em, 3fr) minmax(0, 7fr);
  gap: 8px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.pairs dt {
  font-weight: 800;
}

.pairs dd {
  margin: 0;
  color: var(--ink-2);
}

.after {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

/* Pricing: two plans, compared line by line */
.plans {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.plans th,
.plans td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.plans thead th {
  border-bottom: 1px solid var(--ink);
  vertical-align: bottom;
}

.plans thead th:first-child {
  width: 30%;
}

.plans .price {
  display: block;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plans .price-note {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.plans tbody th {
  color: var(--ink-2);
  font-weight: 400;
}

.plans td.no {
  color: var(--muted);
}

.plans tfoot td {
  padding-top: 22px;
  border-bottom: 0;
}

/* Questions: plain, all open */
.qa {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.qa > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.qa dt {
  font-weight: 800;
}

.qa dd {
  margin: 8px 0 0;
  color: var(--ink-2);
}

/* Last words */
.closing .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.closing p {
  max-width: 18em;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

/* Single-column pages: sign in, welcome, account, notices */
.page {
  max-width: 760px;
  padding-top: clamp(48px, 8vw, 96px);
}

.page h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.25;
}

.page h2 {
  margin-top: 56px;
  font-size: 1.4rem;
}

.page .lead {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.small-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.notice {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--bg-2);
}

.methods {
  display: grid;
  gap: 12px;
  max-width: 380px;
  margin-top: 36px;
}

.method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 0.15s ease-out;
}

.method:hover {
  box-shadow: inset 0 0 0 1px var(--ink);
}

.g-mark {
  width: 20px;
  height: 20px;
  flex: none;
}

.progress {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.progress .done {
  text-decoration: line-through;
}

.progress .now {
  color: var(--ink);
  font-weight: 800;
}

.download-box {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  padding: 28px;
  border-radius: 12px;
  background: var(--bg-2);
}

.download-box p {
  color: var(--ink-2);
  font-size: 15px;
}

.download-box .button {
  justify-self: start;
}

.steps {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--ink);
}

.steps li {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  font-weight: 800;
}

.steps h3 {
  font-size: 1.05rem;
}

.steps p {
  grid-column: 2;
  margin-top: 4px;
  color: var(--ink-2);
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 28px;
  margin: 0;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.actions form {
  margin: 0;
}

/* Policy pages */
.doc {
  max-width: 808px;
  margin: 0 auto;
  padding: 64px var(--gutter) 0;
}

.doc h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.doc h2 {
  margin-top: 40px;
  font-size: 1.25rem;
}

.doc p,
.doc ul {
  margin-top: 12px;
  color: var(--ink-2);
}

/* Phones */
@media (max-width: 860px) {
  .intro-body,
  .part > .wrap,
  .memory-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .hide-narrow {
    display: none;
  }

  .site-header nav {
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .pairs > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .plans th,
  .plans td {
    padding: 12px 6px;
    font-size: 15px;
  }

  .brand span {
    display: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
