:root {
  color-scheme: dark;
  --bg: #141414;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.55);
  --card-bg: #1c1c1c;
  --card-border: #2c2c2c;
  --outline: #5c5c5c;
  --stroke: rgba(255, 255, 255, 0.12); /* app icon and video frame */
  --hover: rgba(255, 255, 255, 0.06);
  --primary-hover: #d9d9d9;
  --body-text: rgba(255, 255, 255, 0.75); /* legal pages */
  --section-bg: #1b1b1b; /* alternate band (more options) */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

/* Light theme (previous design). To switch back, remove the comment markers
   around this block; it comes after the dark :root, so it takes over.
:root {
  color-scheme: light;
  --bg: #fff;
  --fg: #000;
  --muted: rgba(0, 0, 0, 0.5);
  --card-bg: #f9f9f9;
  --card-border: #e6e6e6;
  --outline: #9e9e9e;
  --stroke: rgba(0, 0, 0, 0.08);
  --hover: rgba(0, 0, 0, 0.04);
  --primary-hover: #333;
  --body-text: rgba(0, 0, 0, 0.75);
  --section-bg: #f5f5f5;
}
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
  line-height: 1.2;
}

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

main {
  padding: 0 16px 160px;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 123px;
}

.app-icon {
  width: 86px;
  height: 86px;
  border: 9.556px solid var(--stroke);
  border-radius: 20.574px;
  overflow: hidden;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 542px;
  margin-top: 30px;
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(30px, 8vw, 60px);
  letter-spacing: -0.04em;
}

/* Keep the first headline line on one row, even past the column width */
.hero-copy h1 .h1-line {
  white-space: nowrap;
}

.h1-cursor {
  display: inline-block;
  width: 0.56em;
  height: 0.84em;
  margin: 0 0.06em 0 0.16em;
  vertical-align: -0.12em;
  fill: #000;
  stroke: #fff;
  stroke-width: 1.3;
  stroke-linejoin: round;
}

/* Gentle float on the hero cursor */
@media (prefers-reduced-motion: no-preference) {
  .h1-cursor {
    animation: cursor-float 2.4s ease-in-out infinite;
  }
}

@keyframes cursor-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(0.03em, -0.08em);
  }
}

.lead {
  margin-top: -12px; /* 20px gap between title and subtitle */
  font-size: clamp(18px, 4vw, 24px);
  letter-spacing: -0.04em;
  color: var(--muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 242px;
  height: 64px;
  padding: 0 32px;
  border-radius: 300px;
  background: var(--fg);
  color: var(--bg);
  font-size: 24px;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.btn-primary svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: -3px; /* the Apple logo sits low in its box */
}

a.btn-primary:hover {
  background: var(--primary-hover);
}

/* Mac and Windows download buttons side by side; they stack on narrow screens. */
.hero-downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: max-content; /* wider than the 542px hero text, so both fit on one row */
  max-width: calc(100vw - 32px);
}

.btn-primary svg.windows-logo {
  width: 21px;
  height: 21px;
  margin-top: 0; /* unlike the Apple logo, it sits centered */
}

/* ---------- Language switch ---------- */
.lang-switch {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1.5px solid var(--card-border);
  border-radius: 999px;
  background: var(--card-bg);
  font-size: 14px;
  letter-spacing: -0.02em;
}

.lang-switch a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-switch a:hover {
  color: var(--fg);
}

.lang-switch a[aria-current="page"] {
  background: var(--hover);
  color: var(--fg);
}

/* ---------- Account (top left) ---------- */
.account {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 20;
  font-size: 14px;
  letter-spacing: -0.02em;
}

/* account.js toggles `hidden`; keep it winning over the display rules below. */
.account [hidden] {
  display: none !important;
}

.account button {
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.account-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid var(--card-border);
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--fg);
  transition: border-color 0.15s ease;
}

.account-toggle:hover,
.account-toggle[aria-expanded="true"] {
  border-color: var(--outline);
}

.account-menu-icon {
  width: 18px;
  height: 18px;
}

.account-toggle .avatar {
  width: 100%;
  height: 100%;
}

.avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #3a3a3a;
  color: var(--fg);
  font-size: 16px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 300px;
  padding: 8px;
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  background: #0b0b0b;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.account-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 14px;
  margin-bottom: 4px;
  border-bottom: 1.5px solid var(--card-border);
}

.account-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-badge {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: #3a3a3a;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.account[data-plan="pro"] .plan-badge,
.account[data-plan="max"] .plan-badge {
  background: rgba(10, 132, 255, 0.18);
  color: #4da3ff;
}

.account-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--fg);
  font-size: 16px;
  text-align: left;
  text-decoration: none;
}

.account-item:hover {
  background: var(--hover);
}

.account-item svg {
  flex: none;
  width: 20px;
  height: 20px;
}

/* Signed out: Log in + Subscribe. Free: Subscribe. Pro and Max: Manage subscription. */
.account-subscribe {
  color: #f5ee6e;
}

.account[data-state="signed-in"] .account-login,
.account[data-state="signed-out"] .account-head,
.account[data-state="signed-out"] .account-manage,
.account[data-state="signed-out"] .account-logout,
.account[data-state="signed-out"] .account-delete,
.account[data-plan="pro"] .account-subscribe,
.account[data-plan="max"] .account-subscribe,
.account[data-plan="free"] .account-manage {
  display: none;
}

.account-logout {
  color: #e86a6a;
}

.account-delete {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Delete account dialog (built by account.js) ---------- */
.delete-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 28px;
  overflow-y: auto;
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  background: #0b0b0b;
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: -0.02em;
}

.delete-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.delete-dialog h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 600;
}

.delete-dialog p {
  margin: 0;
  color: var(--muted);
}

.delete-dialog .delete-summary {
  color: var(--fg);
  line-height: 1.6;
}

.delete-dialog ul {
  margin: 0;
  padding-left: 20px;
}

.delete-dialog li + li {
  margin-top: 4px;
}

.delete-dialog .delete-note {
  margin-top: 8px;
  font-size: 13px;
}

.delete-dialog .delete-grace {
  margin: 14px 0 22px;
  line-height: 1.6;
}

.delete-dialog label.delete-confirm {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.delete-dialog input[type="email"] {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--fg);
  font: inherit;
}

.delete-dialog input[type="email"]:focus {
  border-color: var(--outline);
  outline: none;
}

.delete-dialog .delete-error {
  margin-top: 10px;
  color: #e86a6a;
  font-size: 13px;
}

.delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}

.delete-actions button {
  height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.delete-actions button:hover {
  background: var(--hover);
}

.delete-actions .delete-danger {
  border-color: transparent;
  background: #d84a4a;
  color: #fff;
}

.delete-actions .delete-danger:hover {
  background: #c43f3f;
}

.delete-actions .delete-primary {
  border-color: transparent;
  background: var(--fg);
  color: var(--bg);
}

.delete-actions .delete-primary:hover {
  background: var(--primary-hover);
}

.delete-actions button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Korean page: keep words whole when lines wrap */
html[lang="ko"] body {
  word-break: keep-all;
}

/* Korean pages: 150% line height on all text (English keeps its own values) */
html[lang="ko"] body,
html[lang="ko"] body * {
  line-height: 1.5;
}

/* ---------- Section headings ---------- */
.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 890px;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(30px, 6vw, 40px);
  letter-spacing: -0.04em;
}

.section-heading .sub {
  font-size: clamp(18px, 4vw, 24px);
  letter-spacing: -0.04em;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  margin-top: 201px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 824px; /* same width as the two plan cards */
}

/* Same card as the plans */
.faq-item {
  border: 1.5px solid var(--card-border);
  border-radius: 24px;
  background: var(--card-bg);
  transition: border-color 0.15s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--outline);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  font-size: 20px;
  letter-spacing: -0.04em;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-item p {
  margin: -8px 0 0;
  padding: 0 78px 28px 32px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.03em;
}

/* Windows launch notice: a link under the hero button and a section before the FAQ */
.hero-windows {
  margin-top: -16px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.hero-windows:hover {
  color: var(--fg);
}

.faq-item p a {
  color: var(--fg);
}

.windows-notify {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 201px;
  scroll-margin-top: 80px;
}

.notify {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 560px;
}

.notify-row {
  display: flex;
  gap: 10px;
}

.notify-row input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 20px;
  border: 1.5px solid var(--card-border);
  border-radius: 300px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.notify-row input:focus {
  border-color: var(--outline);
  outline: none;
}

.notify-row button {
  flex: none;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 300px;
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.notify-row button:hover {
  background: var(--primary-hover);
}

.notify-consent {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-align: center;
  cursor: pointer;
}

.notify-consent input {
  width: 16px;
  height: 16px;
  margin: 0 8px 0 0;
  vertical-align: -3px;
  accent-color: var(--fg);
}

.notify-status:empty {
  display: none;
}

.notify-status {
  font-size: 14px;
  color: var(--fg);
  text-align: center;
}

.notify-status.is-error {
  color: #ff6b6b;
}

@media (max-width: 600px) {
  .notify-row {
    flex-direction: column;
  }

  .notify-row input {
    flex: none;
  }
}

/* ---------- Install popup (after a download) ---------- */
.install {
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 56px 48px 44px;
  border: 1.5px solid var(--card-border);
  border-radius: 28px;
  background: var(--bg);
  color: var(--fg);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.install::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.install[open] {
  animation: install-in 0.2s ease;
}

@keyframes install-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.install-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.install-close:hover {
  background: var(--hover);
  color: var(--fg);
}

.install-close svg {
  width: 24px;
  height: 24px;
}

.install-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #30d158;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.install-status svg {
  width: 22px;
  height: 22px;
}

.install h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.install-steps > li {
  position: relative;
  counter-increment: step;
}

/* Number badge on each picture */
.install-steps > li::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0a84ff;
  color: #fff;
  font-size: 17px;
}

.install-steps > li > p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.install-steps b {
  color: #4da3ff;
  font-weight: inherit;
}

.install-again {
  margin-top: 48px;
  color: var(--muted);
  font-size: 16px;
}

.install-again a {
  color: #4da3ff;
}

/* Pictures (drawn in HTML/CSS so they stay sharp and match the page) */
.install-ill {
  position: relative;
  height: 200px;
  overflow: hidden;
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  background: var(--card-bg);
}

.ill-cursor {
  position: absolute;
  width: 24px;
  height: 24px;
}

.ill-dock {
  background: linear-gradient(160deg, #1d2b52, #0b0f24);
}

/* Sits above the DMG icon (inside .ill-file-wrap) so its arrow points at it */
.ill-tip {
  position: absolute;
  bottom: calc(100% + 30px);
  left: 50%;
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 17px;
  transform: translateX(-50%);
}

.ill-tip::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  border: 7px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.2);
  border-bottom: 0;
  transform: translateX(-50%);
}

.ill-dock-bar {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: flex-end;
  gap: 14px; /* same space between every icon, like the real Dock */
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
  width: max-content; /* centred with left: 50%, so don't let it shrink */
}

.ill-dock-bar > * {
  flex: none;
}

.ill-app-blank {
  width: 52px;
  height: 52px;
  margin-bottom: 2px; /* square icons sit a touch above the bottom, like in the Dock */
  border-radius: 12px;
  background: linear-gradient(#dfe8ee, #b9c8d2);
}

.ill-divider {
  align-self: stretch;
  width: 1px;
  margin: 2px 0;
  background: rgba(255, 255, 255, 0.3);
}

.ill-file-wrap {
  position: relative;
}

/* DMG and trash pictures: same height, width from each image's proportions */
.ill-file,
.ill-trash {
  display: block;
  width: auto;
  height: 56px;
}

.ill-file-wrap .ill-cursor {
  right: -14px;
  bottom: -12px;
}


.ill-drag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.ill-drag img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

.ill-arrow {
  color: var(--muted);
  font-size: 28px;
}

.ill-folder {
  width: 96px;
  height: 76px;
}

.ill-list {
  padding: 18px 0 0;
  text-align: left;
}

.ill-list-head {
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--card-border);
  font-size: 18px;
}

.ill-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 20px;
  color: var(--body-text);
  font-size: 16px;
}

.ill-row-icon,
.ill-row img {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.ill-row-icon {
  background: #3a3a3a;
}

.ill-row.is-selected {
  background: #0a84ff;
  color: #fff;
}

.ill-row .ill-cursor {
  right: 36px;
  top: 24px;
}

/* Windows install popup: the reason line and the SmartScreen window it walks through. */
.install-why {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.install--windows .install-steps {
  margin-top: 44px;
}

/* SmartScreen's blue window, simplified (Windows draws it in #2d64b9 with white text). */
.ill-smartscreen {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 14px;
  border: 0;
  background: #2d64b9;
  color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif;
  text-align: left;
}

.ss-title {
  font-size: 19px;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.ss-body,
.ss-meta,
.ss-more {
  font-weight: 400;
}

.ss-body,
.ss-meta {
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.92;
}

.ss-meta span {
  display: inline-block;
  min-width: 52px;
}

.ss-more {
  position: relative;
  align-self: flex-start;
  padding: 1px 3px;
  margin-left: -3px;
  border-radius: 3px;
  font-size: 12px;
  text-decoration: underline;
  box-shadow: 0 0 0 2px #fff;
}

.ss-more .ill-cursor {
  left: 70%;
  top: 60%;
}

.ss-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
}

.ss-button {
  position: relative;
  padding: 6px 12px;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ss-button.is-target {
  box-shadow: 0 0 0 3px #4da3ff;
}

.ss-button .ill-cursor {
  right: -6px;
  top: 14px;
}

@media (max-width: 760px) {
  .install {
    padding: 48px 20px 32px;
  }

  .install-steps {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 40px;
  }

  .install-ill {
    height: 180px;
  }

  .install-again {
    margin-top: 36px;
  }
}

/* ---------- Thank-you page ---------- */
.thanks [data-account-email] {
  color: var(--fg);
  overflow-wrap: anywhere;
}

/* ---------- Modes ---------- */
.modes {
  display: flex;
  flex-direction: column;
  gap: 112px;
  margin-top: 187px;
}

/* "More options" heading sits left, lined up with the cards below it */
.more-modes > .section-heading {
  align-items: flex-start;
  max-width: 1000px;
  padding: 0 14px;
  text-align: left;
}

/* Extra room between the two main modes (gap 112px + 88px = 200px) */
.mode + .mode {
  margin-top: 88px;
}

.mode .section-heading {
  gap: 20px; /* 8px tighter than other section headings */
}

.mode-video {
  max-width: 1000px;
  margin: 48px auto 0;
  border: 14px solid var(--stroke); /* app icon stroke color */
  border-radius: 64px;
  overflow: hidden;
  background: #0a0a0b;
  background-clip: padding-box; /* keep the stroke translucent over the page */
}

.mode-option {
  max-width: 1000px;
  margin: 48px auto 0;
}

.mode-option + .mode-option {
  margin-top: 72px;
}

.mode-option .mode-video {
  margin-top: 0;
}

/* Caption under the video, left-aligned like the cards below */
.mode-option-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  padding: 0 14px;
  text-align: left;
}

.mode-option-text h3 {
  font-size: clamp(22px, 4.5vw, 26px);
  letter-spacing: -0.04em;
}

.mode-option-text p {
  font-size: clamp(16px, 3.5vw, 18px);
  letter-spacing: -0.04em;
  color: var(--muted);
}

/* Video-call app icons under the remote exam video (glyphs from Simple Icons) */
.call-apps {
  display: flex;
  gap: 10px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

/* Centered secondary note: icons + small muted line */
.call-caption {
  align-items: center;
  text-align: center;
}

.call-caption p {
  font-size: 15px;
}

.call-app {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.call-app img {
  width: 64%;
  height: 64%;
  object-fit: contain;
}

/* The Zoom file is already a full app icon with a transparent margin;
   scale it so the blue tile fills the 40px slot like the others. */
.call-app--zoom {
  background: none;
}

.call-app--zoom img {
  width: 100%;
  height: 100%;
  transform: scale(1.25);
}

/* Instagram + email links, centered just above the footer (Remix Icon) */
.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 160px auto -112px; /* sits 48px above the footer links */
}

.social-link {
  display: block;
  width: 28px;
  height: 28px;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.social-link:hover {
  opacity: 1;
}

.social-link img {
  width: 100%;
  height: 100%;
  filter: invert(1); /* the Remix SVG is black; flip to white on the dark page */
}

.mode-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Full-width band in a slightly different shade; the shadow + clip-path
   pair paints edge to edge without causing horizontal scroll. */
.more-modes {
  padding: 112px 0;
  background: var(--section-bg);
  box-shadow: 0 0 0 100vmax var(--section-bg);
  clip-path: inset(0 -100vmax);
}

.more-modes .section-heading {
  gap: 20px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 48px auto 0;
}

.mode-card {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mode-card h3 {
  margin-top: 20px;
  padding: 0 14px; /* same left line as the headings above */
  font-size: 22px;
  letter-spacing: -0.04em;
}

.mode-card p {
  margin-top: 8px;
  padding: 0 14px; /* same left line as the headings above */
  font-size: 15px;
  letter-spacing: -0.03em;
  color: var(--muted);
}

.mode-video--small {
  width: 100%;
  margin-top: 0;
  border-width: 8px;
  border-radius: 32px;
}

/* ---------- Pricing ---------- */
.pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  margin-top: 201px;
}

/* "Start [icon] for free." — app icon set inline in the pricing title */
.section-heading h2.pricing-title {
  font-size: clamp(36px, 8vw, 60px);
  white-space: nowrap;
}

.title-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin: 0 0.08em;
  border: 0.128em solid var(--stroke);
  border-radius: 0.276em;
  overflow: hidden;
  vertical-align: -0.24em;
  transform: rotate(-6deg);
}

.title-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1000px; /* same width as the sections above */
}

.plan {
  display: flex;
  flex-direction: column;
  flex: 1 1 280px; /* three across when there's room, then wrap */
  max-width: 400px;
  padding: 44px 32px;
  border: 1.5px solid var(--card-border);
  border-radius: 24px;
  background: var(--card-bg);
}

.plan h3 {
  font-size: 32px;
  letter-spacing: -0.04em;
}

.plan-desc {
  min-height: 40px;
  min-height: 2lh; /* two lines at the page's line height, so prices line up */
  margin-top: 12px;
  font-size: 17px;
  letter-spacing: -0.04em;
  color: var(--muted);
}

/* Three cards across: the English Max description runs to three lines. */
@media (min-width: 920px) {
  html[lang="en"] .plan-desc {
    min-height: 3lh;
  }
}

.plan-price {
  margin-top: 40px;
  font-size: 40px;
  letter-spacing: -0.04em;
}

.plan-meta {
  margin-top: 10px;
  margin-right: -20px; /* lets the line run into the side padding like the design */
  font-size: 17px;
  letter-spacing: -0.04em;
  color: var(--muted);
}

.btn-outline {
  width: 100%;
  margin-top: 28px;
  padding: 18px;
  border: 1.5px solid var(--outline);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-outline:hover {
  background: var(--hover);
}

/* Free plan's download is a link styled like the plan buttons */
a.btn-outline {
  display: block;
  text-align: center;
  text-decoration: none;
}

/* The head script marks Mac or Windows visitors; each sees only their own download. */
html[data-os="mac"] .dl-windows,
html[data-os="windows"] .dl-mac {
  display: none;
}

/* Both Free buttons show when the system is unknown (phones, Linux). */
html:not([data-os]) .plan .dl-mac + .dl-windows {
  margin-top: 12px;
}

/* ...and then say which is which. */
html[data-os] .dl-os-label {
  display: none;
}

/* Mode text that differs on Windows (shortcut, tray). Windows visitors see the Windows
   wording; everyone else sees the Mac wording. */
html[data-os="windows"] .os-mac,
html:not([data-os="windows"]) .os-win {
  display: none;
}

/* Which systems a mode works on. Mac visitors get every mode, so they see no pills. */
html[data-os="mac"] .os-pills {
  display: none;
}

.os-pills {
  display: inline-flex;
  gap: 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.os-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid var(--card-border);
  border-radius: 300px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.os-pill svg {
  width: 12px;
  height: 12px;
  margin-top: -1px; /* the Apple logo sits low in its box */
}

/* "Current plan" on the plan the signed-in account already has */
.btn-outline:disabled {
  color: var(--muted);
  cursor: default;
}

.btn-outline:disabled:hover {
  background: none;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0 0;
  padding: 28px 0 0;
  border-top: 1.5px solid var(--card-border);
  list-style: none;
  font-size: 17px;
  letter-spacing: -0.04em;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.plan-features li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--fg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 15.17l9.19-9.2 1.42 1.42L10 18 3.64 11.64l1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 15.17l9.19-9.2 1.42 1.42L10 18 3.64 11.64l1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plan .btn-outline {
  margin-top: auto;
}

/* Buttons line up along the bottom even when a card has fewer features. */
.plan-features {
  margin-bottom: 36px;
}

@media (max-width: 600px) {
  .lang-switch {
    top: 16px;
    right: 16px;
  }

  .account {
    top: 16px;
    left: 16px;
  }

  .account-menu {
    width: min(300px, calc(100vw - 32px));
  }

  .hero {
    padding-top: 94px;
  }

  .modes,
  .pricing,
  .windows-notify,
  .faq {
    margin-top: 120px;
  }

  .faq-item summary {
    padding: 22px 24px;
    font-size: 17px;
  }

  .faq-item p {
    padding: 0 24px 22px;
    font-size: 16px;
  }

  .modes {
    gap: 72px;
  }

  .mode-video {
    margin-top: 32px;
    border-radius: 36px;
    border-width: 10px;
  }

  .more-modes {
    padding: 72px 0;
  }

  .mode + .mode {
    margin-top: 48px;
  }

  .more-modes > .section-heading {
    padding: 0 10px;
  }

  .mode-card h3,
  .mode-card p {
    padding: 0 10px;
  }

  .mode-option {
    margin-top: 32px;
  }

  .mode-option + .mode-option {
    margin-top: 48px;
  }

  .mode-option-text {
    margin-top: 16px;
    padding: 0 10px;
  }

  .mode-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 32px;
  }

  .mode-video--small {
    margin-top: 0;
    border-width: 8px;
    border-radius: 28px;
  }

  .plan {
    padding: 36px 28px;
  }

  .plan-meta {
    margin-right: 0;
  }
}

/* Filled answer badge next to "answer" in the hero (A–D);
   choice.js swaps the label */
.h1-choice {
  display: inline-grid;
  place-items: center;
  width: 0.78em;
  height: 0.78em;
  margin: 0 0.04em;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  vertical-align: 0.1em;
  transition:
    transform 0.16s ease-in,
    opacity 0.16s ease-in;
}

/* Korean page uses keycap emoji (1️⃣–5️⃣) instead of the filled circle */
.h1-choice--emoji {
  width: auto;
  height: auto;
  margin: 0 0.02em;
  border-radius: 0;
  background: none;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 0.92em;
  line-height: 1;
  vertical-align: -0.04em;
}

.h1-choice--emoji .h1-choice-letter {
  font-size: 1em;
}

/* Swap: shrink away, then pop back in with a little overshoot */
.h1-choice.is-out {
  transform: scale(0.2);
  opacity: 0;
}

.h1-choice.is-in {
  transition:
    transform 0.42s cubic-bezier(0.34, 1.8, 0.5, 1),
    opacity 0.2s ease-out;
}

.h1-choice-letter {
  font-size: 0.56em;
  line-height: 1;
  letter-spacing: 0;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 16px 48px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

.site-footer a {
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 16px 120px;
  font-weight: 400;
}

.legal-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.04em;
  color: var(--fg);
  text-decoration: none;
}

.legal-home img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.legal h1 {
  margin-top: 56px;
  font-size: clamp(32px, 6vw, 40px);
  letter-spacing: -0.04em;
}

.legal-date {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.legal h2 {
  margin-top: 40px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body-text);
}

.legal p {
  margin-top: 12px;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal li + li {
  margin-top: 6px;
}

.legal strong {
  font-weight: 700;
  color: var(--fg);
}

.legal a:not(.legal-home) {
  color: var(--fg);
}
