:root {
  --ink: #17201e;
  --muted: #66726f;
  --line: #dce4e1;
  --paper: #ffffff;
  --surface: #f5f8f6;
  --green: #173f3a;
  --green-2: #245e55;
  --mint: #dceee6;
  --cream: #f6edda;
  --coral: #f5ddd4;
  --blue: #dde7f3;
  --shadow: 0 18px 48px rgba(26, 49, 45, 0.09);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.app-header {
  align-items: center;
  background: rgba(245, 248, 246, 0.92);
  border-bottom: 1px solid rgba(220, 228, 225, 0.82);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1240px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.brand { align-items: center; display: inline-flex; gap: 12px; }
.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 12px;
  color: white;
  display: inline-flex;
  font-family: Georgia, serif;
  font-size: 25px;
  height: 44px;
  justify-content: center;
  width: 44px;
}
.brand strong { display: block; font-size: 16px; letter-spacing: -0.02em; }
.brand small { color: var(--muted); display: block; font-size: 11px; }
.quiet-button, .text-button, .danger-link {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.quiet-button { color: var(--muted); font-size: 13px; }
.text-button { color: var(--green-2); font-weight: 700; }

main { min-height: calc(100vh - 76px); }
.screen { display: none; }
.screen.active { display: block; }

.hero {
  background:
    radial-gradient(circle at 86% 20%, rgba(255,255,255,.18), transparent 24%),
    linear-gradient(135deg, #173f3a 0%, #23564f 100%);
  border-radius: 0 0 42px 42px;
  color: white;
  min-height: 510px;
  padding: 74px max(24px, calc((100vw - 1060px) / 2));
  position: relative;
  overflow: hidden;
}
.hero::after {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  content: "";
  height: 380px;
  position: absolute;
  right: -130px;
  top: 55px;
  width: 380px;
}
.eyebrow {
  color: #4d776f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #b8d8cf; }
.hero h1, .builder-topline h1, .simple-screen h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.03;
}
.hero h1 { font-size: clamp(42px, 6vw, 72px); margin: 18px 0 22px; max-width: 860px; }
.hero > p { color: #dceae6; font-size: 18px; max-width: 690px; }
.hero > .instagram-line { color: #b8d8cf; font-size: 13px; margin: 17px 0 0; }
.instagram-line a { color: white; font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.primary-button, .secondary-button, .small-button {
  align-items: center;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.primary-button:hover, .secondary-button:hover, .small-button:hover { transform: translateY(-1px); }
.primary-button { background: var(--green); border: 1px solid var(--green); color: white; }
.hero .primary-button { background: #f4ead7; border-color: #f4ead7; color: var(--green); }
.secondary-button { background: white; border: 1px solid var(--line); color: var(--green); }
.hero .secondary-button { background: transparent; border-color: rgba(255,255,255,.35); color: white; }
.small-button { background: var(--mint); border: 0; color: var(--green); min-height: 40px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 42px; }
.trust-row span { color: #bcd0ca; font-size: 13px; }
.trust-row b { color: white; display: block; font-size: 14px; }

.how-it-works, .learn-preview, .simple-screen {
  margin: 0 auto;
  max-width: 1160px;
  padding: 80px 24px;
}
.how-it-works { display: grid; gap: 60px; grid-template-columns: .85fr 1.15fr; }
.how-it-works h2, .learn-preview h2, .form-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 12px 0;
}
.how-it-works ol { list-style: none; margin: 0; padding: 0; }
.how-it-works li { align-items: flex-start; border-top: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: 48px 1fr; padding: 20px 0; }
.how-it-works li > span { color: #89a39c; font-family: Georgia, serif; }
.how-it-works li b, .how-it-works li small { display: block; }
.how-it-works li small { color: var(--muted); margin-top: 4px; }
.learn-preview { padding-top: 20px; }
.section-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 26px; }
.article-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.article-grid.expanded { grid-template-columns: repeat(2, 1fr); margin-top: 34px; }
.article-card { border-radius: var(--radius); min-height: 225px; padding: 26px; }
.article-card span { color: #54736d; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.article-card h3 { font-family: Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.15; margin: 35px 0 12px; }
.article-card p { color: #596662; font-size: 14px; margin: 0; }
.mint-card { background: var(--mint); }
.cream-card { background: var(--cream); }
.coral-card { background: var(--coral); }
.blue-card { background: var(--blue); }

.builder-topline {
  align-items: end;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1360px;
  padding: 44px 24px 25px;
}
.builder-topline h1 { font-size: clamp(34px, 4vw, 52px); margin: 8px 0; }
.builder-topline p { color: var(--muted); margin: 0; }
.save-status { color: #55726c; font-size: 12px; white-space: nowrap; }
.save-status::before { background: #6da78b; border-radius: 50%; content: ""; display: inline-block; height: 7px; margin-right: 7px; width: 7px; }

/* The developer package opens directly inside the SASH website page. */
.embedded-app main { min-height: 0; }
.embedded-intro {
  align-items: flex-end;
  background:
    radial-gradient(circle at 88% 10%, rgba(255,255,255,.14), transparent 23%),
    linear-gradient(135deg, #173f3a 0%, #23564f 100%);
  color: white;
  margin: 0;
  max-width: none;
  overflow: hidden;
  padding: 42px max(24px, calc((100vw - 1312px) / 2)) 34px;
  position: relative;
}
.embedded-intro .intro-copy { max-width: 820px; position: relative; z-index: 1; }
.embedded-intro .eyebrow { color: #b8d8cf; }
.embedded-intro h1 { font-size: clamp(38px, 4.8vw, 62px); margin: 10px 0 15px; }
.embedded-intro .intro-copy > p { color: #dceae6; font-size: 16px; max-width: 760px; }
.embedded-intro .instagram-line { color: #b8d8cf; font-size: 13px; margin-top: 14px; }
.intro-tools { align-items: flex-end; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.embedded-intro .save-status { color: #c9ddd7; }
.embedded-intro .save-status::before { background: #9bd1bc; }
.intro-actions { display: flex; gap: 9px; }
.embedded-intro .secondary-button { background: #f4ead7; border-color: #f4ead7; color: var(--green); }
.embedded-intro .quiet-button { border: 1px solid rgba(255,255,255,.38); border-radius: 12px; color: white; min-height: 46px; padding: 0 18px; }
.embedded-app .preview-panel { top: 18px; }
.embedded-app dialog { inset: 34px 0 auto; margin: 0 auto; position: absolute; }
.stepper { display: flex; gap: 6px; margin: 0 auto; max-width: 1360px; overflow-x: auto; padding: 0 24px 22px; }
.step { align-items: center; background: transparent; border: 0; color: #7e8986; cursor: pointer; display: flex; flex: 1; font-size: 12px; gap: 8px; min-width: 100px; padding: 8px 0; position: relative; }
.step::after { background: var(--line); bottom: 0; content: ""; height: 2px; left: 0; position: absolute; right: 0; }
.step span { align-items: center; background: #e9eeec; border-radius: 50%; display: inline-flex; height: 25px; justify-content: center; width: 25px; }
.step.active { color: var(--green); font-weight: 800; }
.step.active span { background: var(--green); color: white; }
.step.active::after { background: var(--green); }
.step.complete::after { background: #8fb1a8; }

.builder-layout { display: grid; gap: 22px; grid-template-columns: minmax(430px, .86fr) minmax(520px, 1.14fr); margin: 0 auto; max-width: 1360px; padding: 0 24px 100px; }
.form-panel, .preview-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-panel { min-height: 660px; padding: 34px; }
.form-step { display: none; }
.form-step.active { display: block; }
.form-heading { margin-bottom: 28px; }
.form-heading > span, .form-heading > div > span { color: #79908a; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.form-heading h2 { font-size: 34px; margin: 7px 0; }
.form-heading p { color: var(--muted); font-size: 14px; margin: 0; }
.form-heading.with-action { align-items: flex-start; display: flex; gap: 18px; justify-content: space-between; }
.field-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: block; }
.field.full { grid-column: 1 / -1; }
.field > span { display: block; font-size: 13px; font-weight: 750; margin-bottom: 7px; }
.field span b { color: #b25b43; }
.field span em { color: #89938f; float: right; font-size: 10px; font-style: normal; font-weight: 500; text-transform: uppercase; }
.field input, .field textarea, .field select {
  background: #fbfcfb;
  border: 1px solid #d7dfdc;
  border-radius: 10px;
  color: var(--ink);
  outline: 0;
  padding: 12px 13px;
  resize: vertical;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: #5b8b80; box-shadow: 0 0 0 3px rgba(82,133,121,.1); }
.field small { color: #8a9491; display: block; font-size: 11px; margin-top: 5px; }
.tip { align-items: flex-start; background: #edf5f1; border-radius: 12px; display: flex; gap: 11px; margin-top: 24px; padding: 15px; }
.tip > span { align-items: center; border: 1px solid #71948b; border-radius: 50%; color: #4c746b; display: inline-flex; flex: 0 0 auto; font-family: Georgia, serif; height: 22px; justify-content: center; width: 22px; }
.tip p { color: #58716b; font-size: 12px; margin: 2px 0 0; }
.form-navigation { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: 34px; padding-top: 22px; }
.form-navigation > span { color: #8c9693; font-size: 12px; }
.form-navigation .secondary-button.hidden { visibility: hidden; }

.experience-list { display: grid; gap: 14px; }
.experience-card { background: #f8faf9; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.experience-card-header { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 16px; }
.experience-card-header b { font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.card-controls { align-items: center; display: flex; gap: 10px; }
.reset-entry, .remove-experience { background: transparent; border: 0; cursor: pointer; font-size: 12px; padding: 4px 2px; }
.reset-entry { color: #4d746b; }
.remove-experience { color: #a05e50; }
.reset-entry:hover, .remove-experience:hover { text-decoration: underline; }
.reset-section-button { background: white; border: 1px solid var(--line); white-space: nowrap; }
.experience-fields { display: grid; gap: 13px; grid-template-columns: 1fr 1fr; }
.experience-fields .full { grid-column: 1 / -1; }
.empty-experience { border: 1px dashed #bdcbc6; border-radius: 14px; color: var(--muted); padding: 28px; text-align: center; }
.include-toggle { align-items: center; color: #63736f; cursor: pointer; display: inline-flex; font-size: 10px; font-weight: 700; gap: 6px; white-space: nowrap; }
.include-toggle input { accent-color: var(--green); height: 15px; margin: 0; width: 15px; }
.number-stepper { align-items: center; background: #fbfcfb; border: 1px solid #d7dfdc; border-radius: 10px; display: grid; grid-template-columns: 40px minmax(56px, 1fr) 40px; min-height: 44px; overflow: hidden; }
.number-stepper button { background: #edf3f0; border: 0; color: var(--green); cursor: pointer; font-size: 20px; height: 100%; }
.number-stepper input { appearance: textfield; background: transparent; border: 0; box-shadow: none; font-weight: 750; padding: 8px 4px; text-align: center; }
.number-stepper input::-webkit-inner-spin-button, .number-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.number-stepper input:focus { box-shadow: none; }
.subsection-heading { align-items: flex-start; display: flex; gap: 20px; justify-content: space-between; margin: 8px 0 14px; }
.subsection-heading.divided { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }
.subsection-heading b, .subsection-heading small { display: block; }
.subsection-heading b { font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.subsection-heading small { color: var(--muted); font-size: 11px; margin-top: 3px; max-width: 400px; }
.compact-list .experience-card { padding: 16px; }
.length-notice { background: #edf5f1; border: 1px solid #d7e7e0; border-radius: 12px; color: #4d6e66; font-size: 12px; margin: -8px 0 18px; padding: 12px 14px; }
.length-notice.warning { background: #fbefdc; border-color: #eedbbd; color: #805e2f; }

.future-feature { align-items: center; background: #f1edf7; border-radius: 14px; display: grid; gap: 12px; grid-template-columns: 40px 1fr auto; margin-top: 22px; padding: 16px; }
.future-icon { align-items: center; background: #ddd1eb; border-radius: 12px; color: #6e528b; display: flex; height: 40px; justify-content: center; }
.future-feature b { font-size: 13px; }
.future-feature p { color: #766f7c; font-size: 11px; margin: 3px 0 0; }
.future-feature > span { background: white; border-radius: 20px; color: #79658c; font-size: 10px; font-weight: 800; padding: 5px 9px; text-transform: uppercase; }

.preview-panel { align-self: start; background: #e7ece9; padding: 18px; position: sticky; top: 98px; }
.preview-toolbar { align-items: center; display: flex; justify-content: space-between; padding: 0 2px 12px; }
.preview-toolbar span { font-size: 12px; font-weight: 800; }
.preview-toolbar small { color: #6f7c78; font-size: 10px; }
.resume-paper {
  aspect-ratio: 1 / 1.414;
  background: white;
  box-shadow: 0 8px 30px rgba(42,57,53,.14);
  color: #1c2422;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 660px;
  overflow: hidden;
  padding: 6.7% 7.2%;
}
.resume-name { font-family: Georgia, serif; font-size: clamp(25px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.025em; line-height: 1; margin: 0; text-transform: uppercase; }
.resume-contact { color: #52605c; font-size: clamp(7px, .8vw, 10px); margin: 8px 0 18px; }
.resume-rule { background: #1c2422; height: 2px; margin-bottom: 16px; }
.resume-section { margin-top: 14px; }
.resume-section-title { border-bottom: 1px solid #9ba5a1; font-size: clamp(8px, .85vw, 11px); font-weight: 800; letter-spacing: .12em; margin: 0 0 8px; padding-bottom: 4px; text-transform: uppercase; }
.resume-row { margin-bottom: 9px; }
.resume-row-head { display: flex; gap: 8px; justify-content: space-between; }
.resume-row-head b { font-size: clamp(8.5px, .95vw, 11.5px); }
.resume-row-head span { color: #535e5b; font-size: clamp(7px, .76vw, 9px); white-space: nowrap; }
.resume-row-sub { color: #4d5956; display: flex; font-size: clamp(7.5px, .8vw, 9.5px); gap: 8px; justify-content: space-between; }
.resume-bullet { font-size: clamp(7.6px, .82vw, 9.7px); line-height: 1.35; margin: 3px 0 0; padding-left: 13px; }
.resume-bullet li { margin-bottom: 2px; }
.resume-inline { font-size: clamp(7.6px, .82vw, 9.7px); margin: 4px 0; }
.resume-inline b { margin-right: 5px; }
.resume-placeholder { color: #8c9692; font-size: clamp(8px, .9vw, 10px); font-style: italic; }
.mobile-preview-slot { display: none; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.danger-link { color: #a25545; font-size: 12px; margin-top: 18px; padding-left: 0; }

.simple-screen { min-height: calc(100vh - 160px); padding-top: 70px; }
.simple-screen h1 { font-size: clamp(40px, 6vw, 68px); margin: 12px 0 18px; max-width: 850px; }
.simple-screen > p { color: var(--muted); font-size: 17px; max-width: 700px; }
.coming-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 38px; }
.coming-grid > div { background: white; border: 1px solid var(--line); border-radius: var(--radius); min-height: 200px; padding: 25px; }
.coming-grid span { color: #728d86; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.coming-grid b { display: block; font-family: Georgia, serif; font-size: 23px; font-weight: 500; margin: 32px 0 10px; }
.coming-grid p { color: var(--muted); font-size: 13px; }

.bottom-nav { display: none; }
dialog { border: 0; border-radius: 20px; box-shadow: 0 30px 90px rgba(16,32,29,.25); max-width: 500px; padding: 36px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(14,27,24,.55); backdrop-filter: blur(4px); }
dialog h2 { font-family: Georgia, serif; font-size: 32px; font-weight: 500; line-height: 1.08; margin: 10px 0 16px; }
dialog p { color: var(--muted); font-size: 14px; }
.dialog-close { background: none; border: 0; cursor: pointer; font-size: 26px; position: absolute; right: 18px; top: 14px; }
dialog .primary-button { margin-top: 12px; }

@media (max-width: 900px) {
  body { padding-bottom: 70px; }
  body.embedded-app { padding-bottom: 0; }
  .app-header { min-height: 66px; padding: 10px 18px; }
  .brand-mark { height: 39px; width: 39px; }
  .hero { border-radius: 0 0 28px 28px; min-height: 520px; padding: 55px 22px; }
  .hero h1 { font-size: 45px; }
  .how-it-works { gap: 30px; grid-template-columns: 1fr; padding: 58px 20px; }
  .learn-preview { padding: 20px 20px 60px; }
  .article-grid, .article-grid.expanded, .coming-grid { grid-template-columns: 1fr; }
  .article-card { min-height: 190px; }
  .section-heading { align-items: flex-start; gap: 20px; }
  .builder-topline { align-items: flex-start; padding: 30px 18px 18px; }
  .embedded-intro { gap: 22px; padding: 34px 20px 28px; }
  .embedded-intro .intro-copy > p { font-size: 15px; }
  .embedded-intro .intro-tools { align-items: flex-start; }
  .builder-topline .save-status { display: none; }
  .stepper { padding: 0 18px 18px; }
  .step { flex: 0 0 48px; min-width: 48px; }
  .step { font-size: 0; }
  .step span { font-size: 12px; }
  .builder-layout { display: block; padding: 0 14px 35px; }
  .form-panel { border-radius: 16px; min-height: auto; padding: 22px 18px; }
  .preview-panel { display: none; }
  .field-grid, .experience-fields { grid-template-columns: 1fr; }
  .field.full, .experience-fields .full { grid-column: 1; }
  .form-heading.with-action { display: block; }
  .form-heading.with-action .small-button { margin-top: 15px; }
  .subsection-heading { align-items: stretch; flex-direction: column; }
  .subsection-heading .small-button { align-self: flex-start; }
  .experience-card-header { align-items: flex-start; }
  .card-controls { align-items: flex-end; flex-direction: column; }
  .future-feature { grid-template-columns: 40px 1fr; }
  .future-feature > span { display: none; }
  .mobile-preview-slot { display: block; margin: 20px 0; }
  .mobile-preview-slot .resume-paper { min-height: 0; width: 100%; }
  .simple-screen { padding: 45px 20px 70px; }
  .bottom-nav {
    align-items: center;
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: flex;
    height: 70px;
    justify-content: space-around;
    left: 0;
    padding: 7px 8px env(safe-area-inset-bottom);
    position: fixed;
    right: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
  }
  .nav-item { background: none; border: 0; color: #7a8582; cursor: pointer; font-size: 10px; min-width: 64px; }
  .nav-item span { display: block; font-size: 20px; line-height: 1; margin-bottom: 5px; }
  .nav-item.active { color: var(--green); font-weight: 800; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 39px; }
  .hero > p { font-size: 16px; }
  .hero-actions > button, .download-actions > button { width: 100%; }
  .trust-row { gap: 18px; }
  .trust-row span { flex: 1; }
  .how-it-works h2, .learn-preview h2 { font-size: 34px; }
  .form-heading h2 { font-size: 29px; }
  .form-navigation .primary-button, .form-navigation .secondary-button { min-height: 42px; padding: 0 14px; }
  .embedded-intro h1 { font-size: 37px; }
  .intro-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .intro-actions > button { width: 100%; }
}

@media print {
  @page { margin: 0; size: A4; }
  body { background: white; padding: 0; }
  body * { visibility: hidden !important; }
  #resume-preview, #resume-preview * { visibility: visible !important; }
  #resume-preview {
    aspect-ratio: auto;
    box-shadow: none;
    height: 297mm;
    left: 0;
    min-height: 0;
    overflow: hidden;
    padding: 16mm 18mm;
    position: absolute;
    top: 0;
    width: 210mm;
  }
  .resume-name { font-size: 24pt; }
  .resume-contact { font-size: 8.5pt; }
  .resume-section-title { font-size: 9pt; }
  .resume-row-head b { font-size: 9.5pt; }
  .resume-row-head span, .resume-row-sub { font-size: 8pt; }
  .resume-bullet, .resume-inline, .resume-placeholder { font-size: 8.2pt; }
}
