/* Aussie Citizenship Practice — single-page site.
   Brand colours mirror BrandPalette.australiaQuiz in core_sdk_design_system:
   these are the app's own "green and gold", not an official colour standard. */

:root {
  --green: #00843d;
  --green-deep: #06552c;
  --green-night: #0a2e1d;
  --green-tint: #eaf4ee;
  --gold: #ffc72c;
  --gold-soft: #fff4d1;
  --gold-text: #7a5a00;

  --ink: #0f1e17;
  --body: #3b4842;
  --muted: #66736c;
  --paper: #f8f7f2;
  --surface: #ffffff;
  --line: #e3e1d7;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgb(15 30 23 / 0.06), 0 2px 8px rgb(15 30 23 / 0.04);
  --shadow-lg: 0 24px 60px -24px rgb(15 30 23 / 0.35), 0 8px 20px -12px rgb(15 30 23 / 0.2);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--green);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--green);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

cite {
  font-style: italic;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* ── Notice strip ───────────────────────────────────────────── */
.notice-strip {
  background: var(--ink);
  color: #d9e2dc;
  font-size: 0.875rem;
  line-height: 1.5;
}

.notice-strip .container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
}

.notice-strip strong {
  color: #fff;
  font-weight: 600;
}

.notice-strip a {
  color: var(--gold);
  white-space: nowrap;
  text-decoration: none;
}

.notice-strip a:hover {
  text-decoration: underline;
}

.notice-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(248 247 242 / 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgb(15 30 23 / 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.08rem;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 8px 12px;
  color: var(--body);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
  background: rgb(15 30 23 / 0.05);
}

.nav-links a.is-active {
  color: var(--green-deep);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 0.98rem/1 var(--sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgb(0 132 61 / 0.7);
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #cfccc0;
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.store-link {
  display: inline-block;
  border-radius: 10px;
  transition: transform 0.2s var(--ease);
}

.store-link:hover {
  transform: translateY(-1px);
}

/* ── Shared section scaffolding ─────────────────────────────── */
.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section-tint {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head-left {
  margin-inline: 0;
  text-align: left;
}

.section-head p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 1.08rem;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-head .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-head-left .eyebrow::after {
  display: none;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(72px, 9vw, 120px);
  overflow: hidden;
}

.hero::before {
  /* A single soft wash of brand colour — atmosphere, not decoration. */
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  max-width: 900px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(0 132 61 / 0.12), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgb(255 199 44 / 0.16), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.lede {
  margin-top: 24px;
  max-width: 560px;
  font-size: 1.16rem;
  color: var(--body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.credentials li {
  padding: 20px 16px 0 0;
}

.credentials li + li {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.credentials strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
}

.credentials span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Phones */
.phone {
  position: relative;
  padding: 9px;
  background: var(--ink);
  border-radius: 38px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

/* The frame takes its height from the screen, never the reverse — a fixed
   frame ratio crops the sides of every capture. */
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  border-radius: 30px;
  background: var(--paper);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  justify-content: center;
}

.phone-front {
  position: relative;
  z-index: 2;
  width: min(300px, 62%);
  margin-right: 18%;
}

.phone-back {
  position: absolute;
  z-index: 1;
  top: 64px;
  right: 2%;
  width: min(256px, 52%);
  opacity: 0.96;
}

.float-card {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 300px;
  padding: 14px 18px 14px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}

.float-card strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}

.float-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green-deep);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
}

/* ── Steps ──────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 36px 32px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 32px;
  width: 48px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--gold);
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  display: block;
  margin-bottom: 28px;
  color: var(--green);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.step p {
  margin-top: 12px;
  color: var(--muted);
}

/* ── Showcase ───────────────────────────────────────────────── */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.showcase-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tab {
  display: grid;
  gap: 4px;
  padding: 22px 24px 22px 28px;
  border: 0;
  border-left: 2px solid var(--line);
  border-radius: 0 12px 12px 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.tab:hover {
  background: var(--paper);
}

.tab[aria-selected="true"] {
  border-left-color: var(--green);
  background: var(--paper);
}

.tab-kicker {
  color: var(--green-deep);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tab-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.3;
}

.tab-body {
  display: grid;
  grid-template-rows: 0fr;
  color: var(--muted);
  font-size: 0.97rem;
  overflow: hidden;
  transition: grid-template-rows 0.4s var(--ease), opacity 0.4s var(--ease), margin 0.4s var(--ease);
  opacity: 0;
}

.tab[aria-selected="true"] .tab-body {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 4px;
}

.showcase-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.showcase-stage::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 32px;
  background: linear-gradient(160deg, var(--green-tint), var(--gold-soft));
}

.phone-stage {
  width: min(310px, 100%);
}

.phone-stage img {
  position: absolute;
  inset: 9px;
  width: calc(100% - 18px);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}

/* The first screen stays in flow to give the frame its height. */
.phone-stage img:first-child {
  position: relative;
  inset: auto;
  width: 100%;
}

.phone-stage img.is-active {
  opacity: 1;
  transform: none;
}

/* ── The standard (dark band) ───────────────────────────────── */
.section-dark {
  background: radial-gradient(120% 80% at 100% 0%, #0d4a2b 0%, var(--green-night) 55%), var(--green-night);
  color: #c9d6cf;
}

.section-dark h2 {
  color: #fff;
}

.section-dark h2 + p {
  margin-top: 20px;
  font-size: 1.08rem;
}

.section-dark em {
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

.eyebrow-light {
  color: var(--gold);
}

.standard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.fine {
  margin-top: 20px;
  font-size: 0.86rem;
  color: #93a59b;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.rule-list div {
  padding: 28px 26px;
  background: rgb(10 46 29 / 0.92);
}

.rule-list dt {
  color: #fff;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
}

.rule-list div:nth-child(3) dt {
  color: var(--gold);
}

.rule-list dd {
  margin: 10px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ── Tablet band ────────────────────────────────────────────── */
.tablet-band {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.tablet-copy p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.tablet {
  margin: 0;
  padding: 12px;
  background: var(--ink);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.tablet img {
  width: 100%;
  border-radius: 16px;
}

/* ── Pricing ────────────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 36px 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan-featured {
  background: var(--surface);
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
}

.plan-flag {
  position: absolute;
  top: -13px;
  left: 36px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.price {
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
}

.price span {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-desc {
  margin-top: 12px;
  color: var(--muted);
}

.plan ul {
  flex: 1;
  margin: 28px 0 32px;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.plan li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 0.97rem;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306552c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.plan .btn {
  align-self: flex-start;
}

.plans-note {
  max-width: 640px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Sources ────────────────────────────────────────────────── */
.sources-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 88px);
}

.sources-grid > div p:not(.eyebrow) {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.source-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list a {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 22px 64px 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.source-list a::after {
  content: "↗";
  position: absolute;
  top: 50%;
  right: 26px;
  translate: 0 -50%;
  color: var(--green);
  font-size: 1.2rem;
  transition: translate 0.25s var(--ease);
}

.source-list a:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.source-list a:hover::after {
  translate: 3px calc(-50% - 3px);
}

.source-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.source-sub {
  color: var(--muted);
  font-size: 0.94rem;
}

.source-url {
  margin-top: 6px;
  color: var(--green-deep);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.faq-wrap .section-head {
  margin-bottom: 0;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq details p {
  padding: 0 48px 24px 0;
  color: var(--muted);
}

/* ── Closing call to action ─────────────────────────────────── */
.cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(56px, 8vw, 88px) 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0 70%, var(--gold) 70% 100%);
}

.cta p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta .store-link {
  margin-top: 10px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: #9fb0a7;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 48px;
  padding-block: 64px 40px;
}

.brand-light {
  color: #fff;
}

.footer-disclaimer {
  max-width: 620px;
  margin-top: 20px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
}

.footer-links a {
  color: #e2e9e5;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-base {
  padding-block: 20px 32px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.82rem;
}

/* ── Reveal on scroll (only when JS is running) ─────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .nav-inner .btn {
    margin-left: auto;
  }

  .hero-grid,
  .showcase,
  .standard-grid,
  .tablet-band,
  .sources-grid,
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    min-height: 0;
    padding-bottom: 32px;
  }

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

  .showcase-stage {
    order: -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .notice-strip .container {
    align-items: flex-start;
  }

  .notice-dot {
    margin-top: 6px;
  }

  .brand span {
    font-size: 0.95rem;
    line-height: 1.2;
  }

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

  .credentials li,
  .credentials li + li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 14px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .credentials strong {
    min-width: 52px;
    font-size: 1.6rem;
  }

  .credentials span {
    margin: 0;
  }

  .phone-front {
    width: 62%;
    margin-right: 22%;
  }

  .phone-back {
    top: 40px;
  }

  .float-card {
    left: 50%;
    bottom: 0;
    width: calc(100% - 16px);
    max-width: 340px;
    translate: -50% 0;
  }

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

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

  .plan {
    padding: 36px 24px 28px;
  }

  .plan-flag {
    left: 24px;
  }

  .plan .btn {
    align-self: stretch;
  }

  .tab {
    padding: 18px 16px 18px 20px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}
