:root {
  --bg-1: #f7efe6;
  --bg-2: #e5f4ef;
  --canvas-glow-1: rgba(255, 171, 126, 0.24);
  --canvas-glow-2: rgba(80, 166, 144, 0.24);

  --ink: #132226;
  --muted: #506066;
  --label: #2c3f44;
  --line: #d8dfdc;

  --topbar-bg: rgba(255, 250, 242, 0.9);
  --topbar-border: rgba(255, 255, 255, 0.45);

  --panel-editor-bg: rgba(255, 250, 242, 0.86);
  --panel-preview-bg: rgba(233, 247, 242, 0.64);

  --card-bg: #ffffff;
  --card-subtle-bg: #fffcf8;
  --card-border: rgba(216, 223, 220, 0.9);

  --input-bg: #fffdfa;
  --input-text: #132226;

  --accent: #176267;
  --accent-strong: #0f4e52;
  --danger: #a33e2f;

  --button-text: #f7fbfa;
  --ghost-hover: rgba(23, 98, 103, 0.1);

  --resume-paper-bg: #ffffff;
  --resume-paper-border: #d7e3dd;
  --resume-text: #24383e;
  --resume-muted: #52656a;

  --shadow: 0 16px 36px rgba(15, 32, 38, 0.12);
  --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --focus-ring: rgba(23, 98, 103, 0.35);
}

:root[data-theme="dark"] {
  --bg-1: #0f1c24;
  --bg-2: #112930;
  --canvas-glow-1: rgba(255, 143, 95, 0.15);
  --canvas-glow-2: rgba(88, 196, 166, 0.12);

  --ink: #d9ece8;
  --muted: #9ab4b0;
  --label: #c3d9d5;
  --line: #2a4348;

  --topbar-bg: rgba(12, 28, 36, 0.86);
  --topbar-border: rgba(71, 97, 106, 0.5);

  --panel-editor-bg: rgba(14, 33, 40, 0.83);
  --panel-preview-bg: rgba(11, 37, 35, 0.72);

  --card-bg: #12282f;
  --card-subtle-bg: #173038;
  --card-border: rgba(45, 73, 80, 0.9);

  --input-bg: #0f2027;
  --input-text: #d9ece8;

  --accent: #4cb7b4;
  --accent-strong: #6ecbc8;
  --danger: #cb7263;

  --button-text: #07232b;
  --ghost-hover: rgba(76, 183, 180, 0.12);

  --resume-paper-bg: #0f2027;
  --resume-paper-border: #2b4950;
  --resume-text: #d7e9e5;
  --resume-muted: #a3c0bc;

  --shadow: 0 18px 40px rgba(5, 12, 16, 0.45);
  --focus-ring: rgba(141, 224, 214, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, var(--canvas-glow-1), transparent 38%),
    radial-gradient(circle at 92% 8%, var(--canvas-glow-2), transparent 36%),
    linear-gradient(155deg, var(--bg-1), var(--bg-2));
  background-size: 160% 160%;
  animation: canvasDrift 18s ease-in-out infinite;
}

.app-splash-shell {
  min-height: 100vh;
  padding:
    calc(24px + var(--safe-top))
    min(28px, 6vw)
    calc(24px + var(--safe-bottom));
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.app-splash-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.app-splash-glow-a {
  width: 52vh;
  height: 52vh;
  left: -14vh;
  top: calc(var(--safe-top) - 6vh);
  background: rgba(74, 161, 255, 0.26);
  animation: nativeGlowDrift 7s ease-in-out infinite;
}

.app-splash-glow-b {
  width: 48vh;
  height: 48vh;
  right: -12vh;
  bottom: calc(var(--safe-bottom) - 8vh);
  background: rgba(18, 98, 117, 0.2);
  animation: nativeGlowDrift 8s ease-in-out infinite reverse;
}

.app-splash-card {
  position: relative;
  z-index: 2;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(230, 246, 243, 0.6));
  backdrop-filter: blur(16px) saturate(1.08);
  padding: 22px 24px;
  width: min(340px, 100%);
  display: grid;
  justify-items: center;
  gap: 8px;
  box-shadow:
    0 26px 52px rgba(6, 20, 28, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  animation: nativeCardIn 260ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.app-splash-logo {
  width: 122px;
  height: 122px;
  object-fit: contain;
  border-radius: 24px;
}

.app-splash-name {
  margin: 2px 0 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.56rem;
  line-height: 1.18;
}

.app-splash-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

:root[data-theme="dark"] .app-splash-card {
  border-color: rgba(131, 198, 187, 0.32);
  background: linear-gradient(145deg, rgba(18, 43, 50, 0.92), rgba(10, 34, 38, 0.84));
  box-shadow:
    0 28px 56px rgba(1, 8, 12, 0.54),
    inset 0 1px 0 rgba(166, 222, 212, 0.16);
}

.native-signup-shell {
  min-height: 100vh;
  padding:
    calc(24px + var(--safe-top))
    min(28px, 5vw)
    calc(22px + var(--safe-bottom));
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.native-signup-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.native-signup-glow-a {
  width: 48vh;
  height: 48vh;
  left: -12vh;
  top: calc(var(--safe-top) - 5vh);
  background: rgba(255, 196, 133, 0.24);
  animation: nativeGlowDrift 7s ease-in-out infinite;
}

.native-signup-glow-b {
  width: 44vh;
  height: 44vh;
  right: -13vh;
  bottom: calc(var(--safe-bottom) - 8vh);
  background: rgba(85, 200, 178, 0.24);
  animation: nativeGlowDrift 8s ease-in-out infinite reverse;
}

.native-signup-card {
  width: min(560px, 100%);
  position: relative;
  z-index: 2;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(233, 249, 245, 0.58));
  backdrop-filter: blur(14px) saturate(1.08);
  box-shadow:
    0 26px 56px rgba(5, 22, 30, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  padding: 26px;
  animation: nativeCardIn 280ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

:root[data-theme="dark"] .native-signup-card {
  border-color: rgba(130, 202, 190, 0.3);
  background: linear-gradient(145deg, rgba(16, 40, 46, 0.9), rgba(10, 32, 36, 0.8));
  box-shadow:
    0 28px 58px rgba(1, 9, 13, 0.48),
    inset 0 1px 0 rgba(172, 229, 220, 0.16);
}

.native-signup-logo-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.56);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(8, 36, 44, 0.2);
}

:root[data-theme="dark"] .native-signup-logo-wrap {
  background: rgba(17, 43, 49, 0.82);
  border-color: rgba(138, 205, 193, 0.36);
}

.native-signup-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.native-signup-eyebrow {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 800;
}

.native-signup-title {
  margin: 10px 0 0;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.46rem, 2.2vw, 1.84rem);
  line-height: 1.25;
}

.native-signup-copy {
  margin: 10px auto 0;
  max-width: 460px;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.94rem;
}

.native-signup-preview {
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.52);
  padding: 14px;
}

:root[data-theme="dark"] .native-signup-preview {
  border-color: rgba(137, 204, 193, 0.34);
  background: rgba(18, 47, 54, 0.72);
}

.native-signup-preview h2 {
  margin: 0;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
}

.native-signup-preview ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.native-signup-preview li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--label);
}

:root[data-theme="dark"] .native-signup-preview li {
  color: var(--ink);
}

.native-signup-actions {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.native-signup-primary {
  border-color: rgba(18, 106, 111, 0.75);
}

.native-signup-primary:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.native-signup-primary:disabled:hover {
  transform: none;
}

.native-signup-guest {
  font-size: 1.125rem;
}

.landing-shell {
  min-height: 100vh;
  width: min(1400px, 96vw);
  margin: 0 auto;
  padding:
    calc(18px + var(--safe-top))
    0
    calc(32px + var(--safe-bottom));
  position: relative;
  overflow: hidden;
}

.landing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

.landing-orb-a {
  width: 58vw;
  height: 58vw;
  max-width: 760px;
  max-height: 760px;
  left: -22vw;
  top: calc(var(--safe-top) - 18vw);
  background: radial-gradient(circle, rgba(255, 176, 116, 0.22), transparent 68%);
}

.landing-orb-b {
  width: 64vw;
  height: 64vw;
  max-width: 880px;
  max-height: 880px;
  right: -24vw;
  top: -14vw;
  background: radial-gradient(circle, rgba(89, 181, 250, 0.22), transparent 70%);
}

.landing-orb-c {
  width: 58vw;
  height: 58vw;
  max-width: 740px;
  max-height: 740px;
  right: -18vw;
  bottom: -24vw;
  background: radial-gradient(circle, rgba(75, 195, 171, 0.18), transparent 72%);
}

.landing-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--topbar-border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(235, 249, 245, 0.58));
  backdrop-filter: blur(14px) saturate(1.06);
  padding: 14px 18px;
  box-shadow: 0 18px 36px rgba(7, 26, 33, 0.14);
}

:root[data-theme="dark"] .landing-header {
  border-color: rgba(130, 202, 191, 0.3);
  background: linear-gradient(145deg, rgba(16, 40, 46, 0.9), rgba(10, 33, 38, 0.82));
  box-shadow: 0 20px 40px rgba(1, 10, 14, 0.44);
}

.landing-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.landing-main {
  margin-top: 20px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  grid-template-areas:
    "hero stage"
    "story story"
    "all all";
}

.landing-hero {
  grid-area: hero;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: linear-gradient(152deg, rgba(255, 255, 255, 0.86), rgba(239, 250, 247, 0.64));
  padding: clamp(22px, 3.5vw, 42px);
  box-shadow:
    0 26px 56px rgba(7, 25, 32, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  position: relative;
  animation: landingBlockIn 520ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.landing-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 181, 250, 0.26), transparent 68%);
  pointer-events: none;
}

:root[data-theme="dark"] .landing-hero {
  border-color: rgba(132, 201, 190, 0.32);
  background: linear-gradient(152deg, rgba(17, 41, 47, 0.92), rgba(11, 35, 39, 0.84));
  box-shadow:
    0 28px 58px rgba(1, 9, 12, 0.5),
    inset 0 1px 0 rgba(165, 223, 214, 0.16);
}

.landing-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 800;
}

.landing-hero h2 {
  margin: 12px 0 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.85rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 760px;
}

.landing-copy {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 700px;
  line-height: 1.56;
  font-size: 1.03rem;
}

.landing-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 780px;
}

.landing-actions .button {
  flex: 1 1 230px;
  min-width: 0;
}

.landing-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.landing-stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-subtle-bg);
  padding: 10px 11px;
}

.landing-stat p {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.landing-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.landing-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.landing-stage {
  grid-area: stage;
  display: grid;
  gap: 12px;
}

.landing-stage-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(152deg, rgba(255, 255, 255, 0.8), rgba(233, 248, 244, 0.62));
  box-shadow:
    0 18px 38px rgba(8, 25, 32, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  padding: 18px;
  animation: landingBlockIn 520ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.landing-stage-primary {
  border-color: rgba(81, 161, 238, 0.36);
}

.landing-stage-secondary {
  border-color: rgba(66, 170, 151, 0.34);
}

.landing-stage-card:nth-child(2) {
  animation-delay: 90ms;
}

:root[data-theme="dark"] .landing-stage-card {
  border-color: rgba(130, 199, 188, 0.3);
  background: linear-gradient(152deg, rgba(17, 41, 47, 0.9), rgba(11, 34, 39, 0.82));
  box-shadow:
    0 20px 42px rgba(1, 9, 12, 0.5),
    inset 0 1px 0 rgba(165, 223, 214, 0.14);
}

.landing-stage-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 800;
}

.landing-stage-card h3 {
  margin: 8px 0 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.22rem;
  line-height: 1.28;
}

.landing-stage-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.48;
  font-size: 0.91rem;
}

.landing-stage-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.landing-stage-tags span {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-subtle-bg);
  padding: 6px 9px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.landing-story-grid {
  grid-area: story;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.landing-story-card {
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(237, 250, 247, 0.58));
  padding: 16px;
  box-shadow: 0 12px 24px rgba(9, 24, 31, 0.1);
  animation: landingBlockIn 520ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.landing-story-card:nth-child(1) {
  animation-delay: 80ms;
}

.landing-story-card:nth-child(2) {
  animation-delay: 120ms;
}

.landing-story-card:nth-child(3) {
  animation-delay: 160ms;
}

.landing-story-card:nth-child(4) {
  animation-delay: 200ms;
}

:root[data-theme="dark"] .landing-story-card {
  border-color: rgba(126, 192, 183, 0.28);
  background: linear-gradient(145deg, rgba(17, 41, 47, 0.88), rgba(11, 34, 39, 0.8));
  box-shadow: 0 14px 26px rgba(1, 8, 12, 0.42);
}

.landing-story-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 800;
}

.landing-story-card h3 {
  margin: 8px 0 0;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.landing-story-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.46;
}

.landing-all-features {
  grid-area: all;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(233, 248, 244, 0.64));
  box-shadow: 0 18px 36px rgba(7, 24, 31, 0.12);
  padding: 18px;
  animation: landingBlockIn 520ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
  animation-delay: 220ms;
}

:root[data-theme="dark"] .landing-all-features {
  border-color: rgba(129, 196, 186, 0.3);
  background: linear-gradient(145deg, rgba(17, 41, 47, 0.9), rgba(11, 34, 39, 0.82));
  box-shadow: 0 20px 40px rgba(1, 8, 12, 0.46);
}

.landing-all-features h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1.08rem;
}

.landing-feature-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.landing-feature-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card-subtle-bg);
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  animation: landingCardRise 460ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.landing-feature-card:nth-child(2) {
  animation-delay: 50ms;
}

.landing-feature-card:nth-child(3) {
  animation-delay: 90ms;
}

.landing-feature-card:nth-child(4) {
  animation-delay: 130ms;
}

.landing-feature-card:nth-child(5) {
  animation-delay: 170ms;
}

.landing-feature-card:nth-child(6) {
  animation-delay: 210ms;
}

.landing-feature-card:nth-child(7) {
  animation-delay: 250ms;
}

.landing-feature-card:nth-child(8) {
  animation-delay: 290ms;
}

.landing-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(23, 98, 103, 0.1);
  color: var(--accent-strong);
}

.landing-feature-title {
  margin: 0;
  font-weight: 800;
  font-size: 0.92rem;
}

.landing-feature-body {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.42;
}

.landing-footer {
  margin-top: 14px;
  position: relative;
  z-index: 4;
  text-align: center;
}

.landing-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

/* Apple-style landing overrides */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(0.99);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.landing-shell {
  width: min(1500px, 96vw);
  padding:
    calc(14px + var(--safe-top))
    0
    calc(36px + var(--safe-bottom));
}

.landing-orb {
  filter: blur(26px);
}

.landing-header {
  position: sticky;
  top: calc(8px + var(--safe-top));
  z-index: 10;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px) saturate(1.18);
}

:root[data-theme="dark"] .landing-header {
  background: rgba(14, 34, 40, 0.72);
  border-color: rgba(132, 201, 190, 0.3);
}

.landing-main {
  margin-top: 28px;
  gap: 44px;
  grid-template-columns: 1fr;
  grid-template-areas:
    "hero"
    "stage"
    "story"
    "all";
}

.landing-hero {
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  min-height: min(86vh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 72px);
  background:
    radial-gradient(circle at 78% 14%, rgba(117, 192, 255, 0.34), transparent 38%),
    radial-gradient(circle at 20% 80%, rgba(106, 210, 190, 0.24), transparent 45%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(234, 249, 245, 0.68));
}

:root[data-theme="dark"] .landing-hero {
  border-color: rgba(141, 212, 201, 0.34);
  background:
    radial-gradient(circle at 76% 18%, rgba(88, 166, 224, 0.32), transparent 40%),
    radial-gradient(circle at 24% 82%, rgba(81, 182, 162, 0.2), transparent 44%),
    linear-gradient(164deg, rgba(16, 40, 46, 0.96), rgba(9, 29, 34, 0.9));
}

.landing-kicker {
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.landing-hero h2 {
  font-size: clamp(2.15rem, 7vw, 5.2rem);
  line-height: 0.96;
  max-width: none;
}

.landing-copy {
  margin-top: 16px;
  max-width: 780px;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
}

.landing-actions {
  margin-top: 22px;
}

.landing-actions .button {
  min-height: 52px;
}

.landing-stats {
  margin-top: 22px;
  max-width: 760px;
}

.landing-stat {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(158, 183, 190, 0.42);
}

:root[data-theme="dark"] .landing-stat {
  background: rgba(13, 34, 39, 0.72);
  border-color: rgba(120, 172, 165, 0.42);
}

.landing-scroll-hint {
  margin: 16px 0 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 800;
}

.landing-note {
  margin-top: 10px;
}

.landing-filmstrip {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-film-card {
  border-radius: 34px;
  padding: clamp(20px, 3.6vw, 38px);
  min-height: clamp(340px, 45vw, 540px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 28px 52px rgba(8, 22, 28, 0.16);
}

.landing-film-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, transparent 0%, rgba(7, 17, 22, 0.12) 100%);
  pointer-events: none;
}

.landing-film-card-left {
  background:
    radial-gradient(circle at 80% 14%, rgba(95, 173, 255, 0.5), transparent 44%),
    linear-gradient(170deg, #f6fbff 0%, #d9eef5 100%);
}

.landing-film-card-right {
  background:
    radial-gradient(circle at 14% 16%, rgba(99, 211, 186, 0.42), transparent 42%),
    linear-gradient(170deg, #f6fffb 0%, #d7f1ea 100%);
}

:root[data-theme="dark"] .landing-film-card-left {
  background:
    radial-gradient(circle at 80% 14%, rgba(82, 157, 231, 0.42), transparent 44%),
    linear-gradient(170deg, #112d36 0%, #0c2730 100%);
}

:root[data-theme="dark"] .landing-film-card-right {
  background:
    radial-gradient(circle at 14% 16%, rgba(84, 189, 165, 0.34), transparent 42%),
    linear-gradient(170deg, #112f33 0%, #0c292d 100%);
}

.landing-film-kicker {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.landing-film-card h3 {
  margin: 10px 0 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.44rem, 2.2vw, 2.25rem);
  line-height: 1.12;
  position: relative;
  z-index: 1;
}

.landing-film-card p {
  margin: 10px 0 0;
  max-width: 36ch;
  position: relative;
  z-index: 1;
}

.landing-film-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.landing-film-tags span {
  border: 1px solid rgba(72, 113, 124, 0.4);
  background: rgba(255, 255, 255, 0.65);
  color: #1f4955;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

:root[data-theme="dark"] .landing-film-tags span {
  border-color: rgba(123, 179, 172, 0.36);
  background: rgba(13, 35, 41, 0.74);
  color: #b9e4de;
}

.landing-storyline h3,
.landing-feature-runway h3 {
  margin: 0 0 14px;
  font-size: clamp(1.16rem, 2vw, 1.54rem);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.landing-storyline-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.landing-storyline-item {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 16px;
  padding: 20px 4px;
  border-top: 1px solid var(--line);
}

.landing-storyline-item:first-child {
  border-top: none;
}

.landing-storyline-kicker {
  margin: 3px 0 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  font-weight: 800;
}

.landing-storyline-copy h4 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.14rem, 1.7vw, 1.4rem);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.landing-storyline-copy p {
  margin: 8px 0 0;
  max-width: 60ch;
  line-height: 1.54;
  color: var(--muted);
}

.landing-feature-rows {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.landing-feature-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 4px;
  border-top: 1px solid var(--line);
}

.landing-feature-row:first-child {
  border-top: none;
}

.landing-feature-row .landing-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(115, 151, 161, 0.42);
  background: rgba(255, 255, 255, 0.72);
}

.landing-feature-row:nth-child(odd) {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.38), transparent 70%);
}

:root[data-theme="dark"] .landing-feature-row .landing-feature-icon {
  border-color: rgba(125, 178, 170, 0.42);
  background: rgba(12, 33, 38, 0.76);
}

:root[data-theme="dark"] .landing-feature-row:nth-child(odd) {
  background: linear-gradient(90deg, rgba(18, 45, 51, 0.32), transparent 70%);
}

.landing-feature-title {
  font-size: 1rem;
}

.landing-feature-body {
  font-size: 0.9rem;
}

.landing-footer {
  margin-top: 24px;
}

.landing-film-card-left {
  transform: translateY(10px) scale(0.995);
}

.landing-film-card-right {
  transform: translateY(-4px);
}

@media (max-width: 1180px) {
  .landing-film-card-left,
  .landing-film-card-right {
    transform: none;
  }
}

.app-shell {
  width: min(1480px, 96vw);
  margin: 0 auto;
  padding-top: calc(16px + var(--safe-top));
  padding-bottom: calc(24px + var(--safe-bottom));
}

.app-shell.native-shell {
  padding-top: calc(22px + var(--safe-top));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  overflow: visible;
  background: var(--topbar-bg);
  border: 1px solid var(--topbar-border);
  backdrop-filter: blur(6px);
  padding: 16px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(26, 50, 56, 0.09);
  z-index: 60;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-shell.native-shell .topbar {
  top: calc(var(--safe-top) + 8px);
}

.topbar.topbar-hidden {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.topbar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.45;
  pointer-events: none;
}

.brand-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "logo eyebrow"
    "logo title";
  column-gap: 10px;
  align-items: center;
}

.brand-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.brand-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 14px;
}

.app-logo {
  grid-area: logo;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(35, 60, 71, 0.22));
}

.eyebrow {
  grid-area: eyebrow;
}

.brand-title {
  grid-area: title;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
}

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

.plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card-subtle-bg);
}

.plan-chip.pro {
  color: #0f5a63;
  border-color: rgba(23, 98, 103, 0.42);
  background: rgba(23, 98, 103, 0.1);
}

.plan-chip.free {
  color: var(--muted);
}

:root[data-theme="dark"] .plan-chip.pro {
  color: #8ce7de;
  border-color: rgba(141, 224, 214, 0.45);
  background: rgba(76, 183, 180, 0.16);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  position: relative;
}

.download-menu {
  position: relative;
}

.download-menu-trigger {
  min-width: 156px;
}

.download-menu-trigger .button-content {
  gap: 6px;
}

.download-chevron {
  transition: transform 0.16s ease;
}

.download-menu.open .download-chevron {
  transform: rotate(180deg);
}

.download-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 208px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: 0 14px 24px rgba(7, 19, 24, 0.2);
  padding: 6px;
  z-index: 65;
  display: grid;
  gap: 5px;
}

.download-menu-option {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  min-height: 40px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.download-menu-option:hover {
  background: var(--ghost-hover);
  border-color: rgba(23, 98, 103, 0.24);
}

.download-menu-option:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
}

:root[data-theme="dark"] .download-menu-panel {
  box-shadow: 0 16px 26px rgba(1, 10, 14, 0.42);
}

.mobile-menu-toggle {
  display: none;
  min-width: 52px;
  padding: 10px 12px;
}

.mobile-menu-toggle.active {
  border-color: var(--accent);
}

.menu-toggle-icon {
  width: 21px;
  height: 21px;
}

.mobile-toolbar-backdrop {
  position: fixed;
  inset: 0;
  border: none;
  background: rgba(7, 15, 20, 0.38);
  z-index: 58;
}

.menu-close-inline {
  display: none;
}

.native-shell .ios-back-button {
  border-radius: 999px;
  border-color: rgba(150, 170, 177, 0.44);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(241, 249, 247, 0.44));
  color: #0f4d52;
  backdrop-filter: blur(16px) saturate(1.1);
  box-shadow:
    0 10px 18px rgba(8, 24, 30, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  min-height: 38px;
  padding: 7px 12px;
}

.native-shell .ios-back-button .button-icon {
  width: 15px;
  height: 15px;
}

.native-shell .ios-back-button:hover {
  border-color: rgba(81, 125, 136, 0.52);
  transform: translateY(-1px);
}

.native-shell .ios-back-button:active {
  transform: translateY(0) scale(0.98);
}

:root[data-theme="dark"] .native-shell .ios-back-button {
  border-color: rgba(157, 211, 205, 0.35);
  background: linear-gradient(145deg, rgba(23, 49, 57, 0.84), rgba(15, 40, 47, 0.72));
  color: #bdece4;
  box-shadow:
    0 12px 20px rgba(2, 10, 14, 0.45),
    inset 0 1px 0 rgba(165, 224, 215, 0.18);
}

.button-content {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.button-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.google-brand-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.linkedin-brand-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.google-auth-button {
  min-height: 52px;
  padding: 12px 16px;
  font-size: 16px;
}

.google-auth-button .button-content {
  gap: 10px;
}

.linkedin-auth-button {
  min-height: 52px;
  padding: 12px 16px;
  font-size: 16px;
}

.linkedin-auth-button .button-content {
  gap: 10px;
}

.profile-launch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.4);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.profile-launch:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 8px 16px rgba(13, 41, 48, 0.14);
}

.profile-launch:active {
  transform: translateY(0);
}

.profile-launch:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

:root[data-theme="dark"] .profile-launch {
  background: rgba(16, 36, 44, 0.8);
}

.profile-launch-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-launch.muted {
  color: var(--muted);
}

.profile-launch-avatar,
.profile-launch-fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.profile-launch-avatar {
  object-fit: cover;
}

.profile-launch-fallback {
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 800;
}

.chip-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--button-text);
  font-weight: 700;
  font-family: inherit;
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.1;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
  box-shadow: 0 8px 14px rgba(22, 98, 103, 0.22);
  position: relative;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
.mobile-preview-cta:focus-visible,
.mobile-menu-toggle:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.button:disabled:hover {
  transform: none;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(82, 110, 118, 0.34);
  color: var(--accent-strong);
  box-shadow: none;
}

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

:root[data-theme="dark"] .button.ghost {
  background: rgba(21, 45, 52, 0.86);
  border-color: rgba(118, 173, 165, 0.36);
  color: #c2ebe4;
}

.button.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff8f7;
  box-shadow: 0 8px 14px rgba(163, 62, 47, 0.2);
}

.button.small {
  padding: 8px 12px;
  font-size: 16px;
  min-height: 36px;
  box-shadow: none;
}

.file-pill input {
  display: none;
}

.workspace {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.panel {
  border-radius: 20px;
  border: 1px solid var(--topbar-border);
  box-shadow: var(--shadow);
}

.editor-panel {
  background: var(--panel-editor-bg);
}

.preview-panel {
  background: var(--panel-preview-bg);
}

.panel-scroll {
  height: calc(100vh - 170px);
  overflow: auto;
  padding: 18px;
}

.preview-shell {
  height: calc(100vh - 170px);
  overflow: auto;
  padding: 22px;
  background-image: radial-gradient(circle at 1px 1px, rgba(97, 130, 138, 0.18) 1px, transparent 0);
  background-size: 14px 14px;
  border-radius: 20px;
}

.panel-scroll,
.preview-shell,
.toolbar {
  -webkit-overflow-scrolling: touch;
}

.preview-heading {
  margin-bottom: 14px;
}

.preview-heading h2 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
}

.preview-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.mobile-preview-cta {
  display: none;
  position: fixed;
  right: 14px;
  bottom: calc(14px + var(--safe-bottom));
  z-index: 62;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--button-text);
  backdrop-filter: blur(10px) saturate(1.05);
  border-radius: 999px;
  padding: 11px 16px;
  min-height: 44px;
  font-size: 1.125rem;
  box-shadow: 0 14px 26px rgba(9, 33, 40, 0.26);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    border-color 0.2s ease;
}

:root[data-theme="dark"] .mobile-preview-cta {
  box-shadow: 0 16px 28px rgba(2, 11, 14, 0.4);
}

.mobile-preview-cta .button-content {
  position: relative;
  z-index: 0;
}

.mobile-preview-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(9, 33, 40, 0.28);
}

.mobile-preview-cta:active {
  transform: translateY(0);
}

.mobile-preview-cta.active {
  border-color: var(--accent-strong);
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

:root[data-theme="dark"] .mobile-preview-cta.active {
  background: linear-gradient(135deg, #6ecbc8, #4cb7b4);
  color: #072128;
}

.mobile-step-nav {
  display: none;
}

.mobile-step-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-step-scroll::-webkit-scrollbar {
  display: none;
}

.mobile-step-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 44px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.mobile-step-button:hover {
  transform: translateY(-1px);
  background: var(--ghost-hover);
}

.mobile-step-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--button-text);
  box-shadow: 0 8px 16px rgba(10, 38, 43, 0.2);
}

.mobile-step-button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.mobile-step-button .button-icon {
  width: 16px;
  height: 16px;
}

:root[data-theme="dark"] .mobile-step-button.active {
  background: #6ac7c3;
  border-color: #6ac7c3;
  color: #062128;
}

.mobile-preview-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 20, 0.55);
  backdrop-filter: blur(3px);
  z-index: 66;
  display: grid;
  align-items: end;
  animation: backdropFadeIn 180ms ease-out both;
}

.mobile-preview-panel {
  width: 100%;
  height: min(92vh, 100%);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.68), rgba(215, 241, 236, 0.5)),
    var(--panel-preview-bg);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  box-shadow:
    0 -16px 36px rgba(4, 11, 16, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(1.05);
  overflow: hidden;
  padding-bottom: var(--safe-bottom);
  animation: previewSheetIn 230ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

:root[data-theme="dark"] .mobile-preview-panel {
  background:
    linear-gradient(155deg, rgba(16, 41, 47, 0.86), rgba(11, 35, 39, 0.78)),
    var(--panel-preview-bg);
  border-color: rgba(122, 188, 176, 0.24);
  box-shadow:
    0 -20px 42px rgba(2, 8, 12, 0.45),
    inset 0 1px 0 rgba(172, 229, 220, 0.14);
}

.mobile-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(243, 251, 249, 0.48));
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 2;
}

:root[data-theme="dark"] .mobile-preview-head {
  border-bottom-color: rgba(122, 188, 176, 0.26);
  background: linear-gradient(145deg, rgba(19, 44, 50, 0.9), rgba(12, 37, 41, 0.76));
}

:root[data-theme="dark"] .mobile-preview-panel .preview-shell {
  background:
    radial-gradient(circle at 14% 0%, rgba(153, 218, 208, 0.2), transparent 45%),
    radial-gradient(circle at 88% 0%, rgba(64, 157, 147, 0.2), transparent 45%),
    radial-gradient(circle at 1px 1px, rgba(142, 186, 181, 0.14) 1px, transparent 0);
  background-size:
    auto,
    auto,
    14px 14px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 14px 24px rgba(14, 45, 50, 0.12);
}

.auth-card {
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(76, 183, 180, 0.06), transparent 35%);
  pointer-events: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.section-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.section-icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex: 0 0 auto;
}

.auth-state {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.auth-state.on {
  color: #2a8f6d;
  border-color: rgba(42, 143, 109, 0.45);
  background: rgba(42, 143, 109, 0.08);
}

:root[data-theme="dark"] .auth-state.on {
  color: #7ce0ba;
  border-color: rgba(124, 224, 186, 0.35);
  background: rgba(124, 224, 186, 0.08);
}

.auth-state.off {
  color: var(--muted);
}

.auth-copy {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-avatar,
.auth-avatar-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.auth-avatar {
  object-fit: cover;
  background: var(--card-subtle-bg);
}

.auth-avatar-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--accent-strong);
  background: var(--card-subtle-bg);
}

.auth-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.auth-email {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.profile-hub-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 17, 22, 0.55);
  backdrop-filter: blur(4px);
  z-index: 70;
  display: grid;
  justify-items: end;
}

.profile-hub-panel {
  height: 100%;
  width: min(520px, 96vw);
  background: var(--card-bg);
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 32px rgba(4, 12, 18, 0.28);
  padding: calc(18px + var(--safe-top)) 18px calc(18px + var(--safe-bottom));
  overflow: auto;
}

.profile-hub-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--card-bg);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.profile-hub-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-hub-avatar,
.profile-hub-avatar-fallback {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.profile-hub-avatar {
  object-fit: cover;
}

.profile-hub-avatar-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
}

.profile-hub-name {
  margin: 0;
  font-weight: 800;
  font-size: 1.06rem;
}

.profile-hub-email {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.profile-hub-bio {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.profile-hub-stats {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-hub-stats > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-subtle-bg);
  padding: 10px;
}

.hub-stat-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.profile-hub-section {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.profile-hub-section h3 {
  margin: 0;
  font-size: 0.94rem;
  font-family: "Poppins", sans-serif;
}

.profile-hub-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-auth-state {
  margin-left: auto;
}

.profile-hub-auth-actions {
  margin-top: 2px;
}

.profile-hub-form-grid {
  margin-top: 10px;
}

.profile-hub-section .google-auth-button {
  width: 100%;
}

.profile-hub-section .linkedin-auth-button {
  width: 100%;
}

.profile-detail-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-detail-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-subtle-bg);
  padding: 10px;
}

.profile-detail-value {
  margin: 4px 0 0;
  line-height: 1.35;
  font-size: 0.85rem;
  color: var(--ink);
  word-break: break-word;
}

.resume-library-list {
  display: grid;
  gap: 10px;
}

.resume-library-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--card-subtle-bg);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.resume-library-copy {
  min-width: 0;
}

.resume-library-name {
  margin: 0;
  font-weight: 800;
  font-size: 0.91rem;
}

.resume-library-meta {
  margin: 4px 0 0;
  font-size: 0.77rem;
  color: var(--muted);
}

.resume-library-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-empty {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.paywall-backdrop {
  position: fixed;
  inset: 0;
  z-index: 74;
  background: rgba(8, 17, 22, 0.62);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding:
    calc(20px + var(--safe-top))
    14px
    calc(20px + var(--safe-bottom));
  animation: backdropFadeIn 180ms ease-out both;
}

.paywall-panel {
  width: min(920px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(232, 248, 244, 0.6));
  box-shadow:
    0 24px 48px rgba(5, 14, 18, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(1.06);
  padding: 18px;
}

:root[data-theme="dark"] .paywall-panel {
  border-color: rgba(131, 198, 187, 0.3);
  background: linear-gradient(145deg, rgba(18, 43, 50, 0.92), rgba(11, 34, 39, 0.84));
  box-shadow:
    0 24px 50px rgba(2, 9, 12, 0.56),
    inset 0 1px 0 rgba(166, 222, 212, 0.16);
}

.paywall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.paywall-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.billing-toggle {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.billing-pill {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-subtle-bg);
  color: var(--ink);
  text-align: left;
  font-family: inherit;
  padding: 10px 12px;
  min-height: 58px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.billing-pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.billing-pill.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: rgba(23, 98, 103, 0.08);
}

:root[data-theme="dark"] .billing-pill.active {
  background: rgba(76, 183, 180, 0.15);
}

.billing-pill-title {
  display: block;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 800;
}

.billing-pill-price {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
}

.paywall-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--card-subtle-bg);
  display: grid;
  gap: 10px;
}

.plan-card.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.plan-card.pro {
  background: linear-gradient(145deg, rgba(23, 98, 103, 0.1), rgba(23, 98, 103, 0.02));
}

:root[data-theme="dark"] .plan-card.pro {
  background: linear-gradient(145deg, rgba(76, 183, 180, 0.16), rgba(76, 183, 180, 0.04));
}

.plan-name {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 800;
}

.plan-price {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.1;
}

.plan-price span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.plan-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.plan-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.86rem;
  line-height: 1.35;
}

.paywall-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.template-card {
  position: relative;
}

.template-hint {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.template-option {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-subtle-bg);
  color: var(--ink);
  text-align: left;
  font-family: inherit;
  padding: 11px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.template-option:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.template-option.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: rgba(23, 98, 103, 0.08);
}

:root[data-theme="dark"] .template-option.active {
  background: rgba(76, 183, 180, 0.14);
}

.template-option.locked {
  border-style: dashed;
}

.template-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.template-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(23, 98, 103, 0.42);
  background: rgba(23, 98, 103, 0.1);
  color: var(--accent-strong);
}

:root[data-theme="dark"] .template-lock-pill {
  border-color: rgba(141, 224, 214, 0.45);
  background: rgba(76, 183, 180, 0.17);
  color: #a4ebe2;
}

.template-name {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.template-desc {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--label);
}

input,
textarea {
  margin-top: 6px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: var(--input-text);
  background: var(--input-bg);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 98, 103, 0.16);
}

textarea {
  resize: vertical;
}

.grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.grid.one {
  display: grid;
  gap: 10px;
}

.stack-list {
  display: grid;
  gap: 10px;
}

.entry-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card-subtle-bg);
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.entry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(var(--accent), transparent);
  opacity: 0.6;
}

.entry-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.entry-top h3 {
  margin: 0;
  font-size: 0.92rem;
}

.tailor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.ai-settings {
  margin: 8px 0 10px;
}

.ai-settings summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--label);
}

.status-text {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.85rem;
  margin: 8px 0 10px;
}

.status-text[data-type="info"] {
  background: rgba(23, 98, 103, 0.1);
  color: #164e52;
}

.status-text[data-type="success"] {
  background: rgba(30, 141, 102, 0.14);
  color: #146442;
}

.status-text[data-type="error"] {
  background: rgba(163, 62, 47, 0.15);
  color: #7d2f23;
}

.status-text[data-type="working"] {
  background: rgba(207, 140, 36, 0.15);
  color: #7c5615;
}

:root[data-theme="dark"] .status-text[data-type="info"] {
  color: #86d8db;
}

:root[data-theme="dark"] .status-text[data-type="success"] {
  color: #8fe0bf;
}

:root[data-theme="dark"] .status-text[data-type="error"] {
  color: #f0b7ad;
}

:root[data-theme="dark"] .status-text[data-type="working"] {
  color: #f3d18c;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.insight-grid > div {
  border: 1px solid var(--line);
  background: var(--card-subtle-bg);
  border-radius: 12px;
  padding: 10px;
}

.insight-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.insight-value {
  margin: 4px 0 0;
  font-size: 1.12rem;
  font-weight: 800;
}

.insight-value.small {
  font-size: 0.83rem;
  line-height: 1.36;
}

.resume-paper {
  margin: 0 auto;
  width: min(100%, 820px);
  min-height: 1100px;
  padding: 44px;
  background: var(--resume-paper-bg);
  border-radius: 14px;
  border: 1px solid var(--resume-paper-border);
  box-shadow: 0 20px 38px rgba(12, 30, 35, 0.16);
}

.resume-paper.template-modern .resume-header {
  border-bottom: 1px solid var(--resume-paper-border);
  padding-bottom: 16px;
}

.resume-paper.template-executive {
  border-left: 8px solid var(--accent);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.resume-paper.template-executive .resume-header h1 {
  letter-spacing: 0.02em;
}

.resume-paper.template-executive .resume-section h2 {
  letter-spacing: 0.2em;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--resume-paper-border);
}

.resume-paper.template-executive .item-heading h3 {
  font-size: 1rem;
}

.resume-paper.template-minimal {
  padding: 32px;
}

.resume-paper.template-minimal .resume-header {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--resume-paper-border);
}

.resume-paper.template-minimal .resume-header h1 {
  font-size: 1.7rem;
}

.resume-paper.template-minimal .resume-title {
  margin-top: 4px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
}

.resume-paper.template-minimal .resume-section {
  margin-top: 18px;
}

.resume-paper.template-minimal .resume-section h2 {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.resume-paper.template-sidebar {
  width: min(100%, 920px);
}

.resume-paper.template-sidebar .resume-header {
  border-bottom: 1px solid var(--resume-paper-border);
  padding-bottom: 14px;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(200px, 230px) 1fr;
  gap: 22px;
  margin-top: 20px;
}

.resume-aside {
  border-right: 1px solid var(--resume-paper-border);
  padding-right: 16px;
}

.resume-aside .resume-section {
  margin-top: 0;
  margin-bottom: 20px;
}

.resume-aside .resume-section:last-child {
  margin-bottom: 0;
}

.resume-main .resume-section:first-child {
  margin-top: 0;
}

.resume-header h1 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  line-height: 1.15;
}

.resume-title {
  margin: 6px 0 10px;
  color: var(--accent-strong);
  font-size: 1.02rem;
  font-weight: 700;
}

.resume-contact {
  margin: 0;
  color: var(--resume-muted);
  font-size: 1.04rem;
}

.resume-contact a {
  color: var(--accent-strong);
}

.resume-section {
  margin-top: 24px;
}

.resume-section h2 {
  margin: 0 0 9px;
  font-size: 0.94rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.resume-section p {
  margin: 0;
  color: var(--resume-text);
  line-height: 1.62;
  font-size: 1.07rem;
}

.resume-item {
  margin-bottom: 14px;
}

.resume-item:last-child {
  margin-bottom: 0;
}

.item-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.item-heading h3 {
  margin: 0;
  font-size: 1.1rem;
}

.item-meta {
  margin: 3px 0 0;
  color: var(--resume-muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.resume-list {
  margin: 7px 0 0 18px;
  padding: 0;
}

.resume-list li {
  margin-bottom: 5px;
  line-height: 1.55;
  color: var(--resume-text);
  font-size: 1.05rem;
}

.resume-skills {
  margin: 0;
  line-height: 1.65;
  color: var(--resume-text);
  font-size: 1.05rem;
}

@keyframes nativeGlowDrift {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.03);
  }
}

@keyframes nativeCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes landingBlockIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes landingCardRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes backdropFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes previewSheetIn {
  from {
    opacity: 0.65;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toolbarPop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes canvasDrift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .panel-scroll,
  .preview-shell {
    height: auto;
    max-height: none;
  }

  .resume-paper {
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .landing-shell {
    width: min(980px, 96vw);
  }

  .landing-header {
    position: static;
    border-radius: 24px;
  }

  .landing-header-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .landing-main {
    gap: 30px;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-actions,
  .landing-stats {
    max-width: none;
  }

  .landing-actions .button,
  .landing-header-actions .button {
    flex: 1 1 220px;
  }

  .landing-filmstrip {
    grid-template-columns: 1fr;
  }

  .landing-film-card {
    min-height: 320px;
  }

  .landing-storyline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 4px;
  }

  .app-shell {
    padding-top: calc(22px + var(--safe-top));
  }

  .topbar {
    overflow: visible;
    align-items: flex-start;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    min-height: 48px;
  }

  .mobile-menu-toggle .button-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.35;
    color: var(--accent-strong);
    opacity: 1;
    transition: transform 0.22s ease;
  }

  :root[data-theme="dark"] .mobile-menu-toggle .button-icon {
    color: #d1f3ed;
  }

  .mobile-menu-toggle.active .button-icon {
    transform: rotate(90deg) scale(1.04);
  }

  .toolbar {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    padding: calc(var(--safe-top) + 18px) 14px calc(var(--safe-bottom) + 20px);
    border-radius: 0;
    border: none;
    background:
      linear-gradient(155deg, rgba(255, 255, 255, 0.78), rgba(232, 248, 244, 0.62)),
      var(--card-bg);
    backdrop-filter: blur(16px) saturate(1.06);
    box-shadow: none;
    overflow: auto;
    overscroll-behavior: contain;
    z-index: 120;
  }

  :root[data-theme="dark"] .toolbar {
    background:
      linear-gradient(155deg, rgba(17, 43, 49, 0.92), rgba(12, 35, 40, 0.84)),
      var(--card-bg);
  }

  .toolbar.open {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    animation: toolbarPop 180ms ease-out both;
  }

  .mobile-toolbar-backdrop {
    display: none;
  }

  .toolbar > * {
    width: min(460px, 100%);
    margin-inline: auto;
  }

  .toolbar .button,
  .toolbar .profile-launch,
  .toolbar .plan-chip,
  .toolbar .download-menu {
    width: 100%;
    max-width: none;
  }

  .toolbar .button {
    justify-content: center;
  }

  .toolbar .button .button-content {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .toolbar .button-icon,
  .toolbar .chip-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.1;
    opacity: 0.98;
  }

  .toolbar .profile-launch {
    justify-content: center;
  }

  .toolbar .plan-chip {
    justify-content: center;
  }

  .toolbar .menu-close-inline {
    display: inline-flex;
  }

  .toolbar .download-menu-panel {
    position: static;
    top: auto;
    right: auto;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    box-shadow: none;
    background: var(--card-subtle-bg);
  }

  .workspace.mobile-layout {
    grid-template-columns: 1fr;
  }

  .workspace.mobile-layout .panel-scroll {
    padding-bottom: calc(172px + var(--safe-bottom));
  }

  .panel-scroll .card {
    scroll-margin-top: calc(var(--safe-top) + 94px);
  }

  .mobile-step-nav {
    display: block;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + var(--safe-bottom));
    z-index: 63;
    border-radius: 16px;
    border: 1px solid rgba(123, 161, 171, 0.38);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(232, 248, 244, 0.64)),
      var(--card-bg);
    backdrop-filter: blur(14px) saturate(1.05);
    box-shadow:
      0 12px 24px rgba(6, 17, 24, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.84);
    padding: 8px;
  }

  :root[data-theme="dark"] .mobile-step-nav {
    border-color: rgba(129, 191, 184, 0.32);
    background:
      linear-gradient(145deg, rgba(18, 43, 49, 0.9), rgba(12, 35, 40, 0.82)),
      var(--card-bg);
    box-shadow:
      0 14px 28px rgba(1, 9, 14, 0.5),
      inset 0 1px 0 rgba(166, 223, 213, 0.16);
  }

  .mobile-preview-cta {
    display: none;
  }

  .mobile-preview-panel .preview-shell {
    height: calc(100% - 58px - var(--safe-bottom));
    max-height: none;
    border-radius: 0;
    padding: 16px;
    background:
      radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.58), transparent 45%),
      radial-gradient(circle at 88% 0%, rgba(147, 207, 197, 0.38), transparent 45%),
      radial-gradient(circle at 1px 1px, rgba(97, 130, 138, 0.16) 1px, transparent 0);
    background-size:
      auto,
      auto,
      14px 14px;
  }

  .mobile-preview-panel .resume-paper {
    min-height: auto;
    margin-bottom: 16px;
  }

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

@media (max-width: 760px) {
  .landing-header {
    position: static;
    border-radius: 24px;
    padding: 12px;
  }

  .landing-header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .landing-header-actions .button {
    flex: 1 1 0;
  }

  .landing-hero,
  .landing-film-card {
    border-radius: 18px;
    padding: 14px;
  }

  .landing-hero h2 {
    font-size: clamp(1.7rem, 9vw, 2.7rem);
    line-height: 1.02;
  }

  .landing-actions .button {
    flex: 1 1 100%;
  }

  .landing-stats {
    grid-template-columns: 1fr;
  }

  .landing-film-card {
    min-height: 280px;
  }

  .landing-film-card h3 {
    font-size: 1.34rem;
  }

  .landing-storyline-item {
    padding: 14px 0;
  }

  .landing-feature-row {
    align-items: flex-start;
  }

  .native-signup-card {
    padding: 20px;
    border-radius: 24px;
  }

  .native-signup-logo-wrap {
    width: 84px;
    height: 84px;
    border-radius: 24px;
  }

  .native-signup-logo {
    width: 62px;
    height: 62px;
  }

  .native-signup-preview {
    padding: 12px;
  }

  .topbar {
    padding: 14px;
  }

  .brand h1 {
    font-size: 1.3rem;
  }

  .app-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

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

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

  .resume-paper {
    padding: 28px 20px;
  }

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

  .resume-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .resume-aside {
    border-right: none;
    border-bottom: 1px solid var(--resume-paper-border);
    padding-right: 0;
    padding-bottom: 14px;
    margin-bottom: 14px;
  }

  .profile-launch {
    max-width: 100%;
  }

  .profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .profile-hub-stats {
    grid-template-columns: 1fr;
  }

  .profile-hub-panel {
    width: 100vw;
    border-left: none;
  }

  .billing-toggle {
    grid-template-columns: 1fr;
  }

  .paywall-panel {
    padding: 14px;
    border-radius: 16px;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .topbar,
  .native-signup-shell,
  .landing-shell,
  .editor-panel,
  .preview-heading,
  .profile-hub-backdrop,
  .paywall-backdrop,
  .mobile-step-nav,
  .mobile-preview-cta,
  .mobile-preview-backdrop,
  .mobile-toolbar-backdrop {
    display: none !important;
  }

  .workspace {
    display: block;
    margin: 0;
  }

  .preview-panel {
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .preview-shell {
    padding: 0;
    height: auto;
  }

  .resume-paper {
    width: 100%;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    min-height: auto;
    background: #fff;
  }

  .resume-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .resume-aside {
    border-right: none;
    border-bottom: 1px solid #d4d4d4;
    padding: 0 0 12px;
    margin-bottom: 12px;
  }
}
