/* Detected Bree files:
   - Bree Light.otf -> 300 normal
   - Bree Regular.otf -> 400 normal
   - Bree Bold.otf -> 700 normal
   - Bree Oblique.otf -> 400 italic
   Additional Bree files present but not mapped because the app does not currently expose them:
   - Bree Light Oblique.otf
   - Bree Bold Oblique.otf
   - Bree ExtraBold.otf
   - Bree ExtraBold Oblique.otf
*/
@font-face{
  font-family:"Bree";
  src:
    local("Bree Light"),
    local("Bree-Light"),
    url("../src/assets/bree/Bree Light.otf") format("opentype");
  font-weight:300;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"Bree";
  src:
    local("Bree Regular"),
    local("Bree-Regular"),
    url("../src/assets/bree/Bree Regular.otf") format("opentype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"Bree";
  src:
    local("Bree Bold"),
    local("Bree-Bold"),
    url("../src/assets/bree/Bree Bold.otf") format("opentype");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"Bree";
  src:
    local("Bree Regular Oblique"),
    local("Bree Oblique"),
    local("Bree-RegularOblique"),
    url("../src/assets/bree/Bree Oblique.otf") format("opentype");
  font-weight:400;
  font-style:italic;
  font-display:swap;
}

:root{
  --color-background:#E9E9E9;
  --color-surface:#F2F4D1;
  --color-surface-alt:#FFFFFF;
  --color-surface-strong:#2A2A2A;
  --color-text-primary:#2A2A2A;
  --color-text-secondary:rgba(42,42,42,.72);
  --color-text-muted:rgba(42,42,42,.58);
  --color-text-inverse:#F2F4D1;
  --color-text-inverse-muted:rgba(242,244,209,.74);
  --color-border:rgba(42,42,42,.14);
  --color-border-strong:rgba(42,42,42,.24);
  --accent-lime:#D3F14D;
  --accent-lime-strong:#BFD84A;
  --accent-purple:#5B3CF5;
  --accent-purple-strong:#4A2FDD;
  --accent-pink:#EC5AD9;
  --accent-pink-strong:#D847C5;
  --success-highlight:var(--accent-lime);
  --state-hover:rgba(91,60,245,.1);
  --state-focus:#EC5AD9;
  --state-active:#4A2FDD;
  --shadow-soft:0 22px 50px rgba(42,42,42,.12);
  --shadow-strong:0 30px 80px rgba(42,42,42,.2);
  --radius-xl:32px;
  --radius-lg:24px;
  --radius-md:16px;
  --display:"Bree", "Avenir Next Condensed", "Avenir Next", "Helvetica Neue", sans-serif;
  --ui:"Avenir Next", "Avenir", "Helvetica Neue", "Trebuchet MS", sans-serif;
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  position:relative;
  min-height:100vh;
  margin:0;
  isolation:isolate;
  background: linear-gradient(140deg, rgba(242,244,209,.94), rgba(233,233,233,.96));
  color: var(--color-text-primary);
  font-family: var(--ui);
  letter-spacing: .01em;
}

body::before,
body::after{
  content:"";
  position:fixed;
  pointer-events:none;
  z-index:0;
}

body::before{
  inset:0;
  background:
    linear-gradient(90deg, rgba(211,241,77,.34) 0 23%, transparent 23% 100%),
    linear-gradient(180deg, transparent 0 8%, rgba(91,60,245,.18) 8% 32%, transparent 32% 100%),
    linear-gradient(180deg, transparent 0 58%, rgba(236,90,217,.16) 58% 100%);
  mix-blend-mode:multiply;
  opacity:.72;
}

body::after{
  top:-20vw;
  right:-14vw;
  width:min(54vw, 720px);
  height:min(54vw, 720px);
  border-radius:50%;
  background:radial-gradient(circle, rgba(91,60,245,.18), transparent 68%);
}

a{
  color: var(--accent-purple);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

a:hover{ color: var(--accent-pink); }

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

input,
button,
select{
  font-family: var(--ui);
}

.page{
  position:relative;
  z-index:1;
  max-width: 1240px;
  margin: 28px auto 56px;
  padding: 0 20px;
  display:grid;
  gap: 24px;
}

header.hero{
  position:relative;
  overflow:hidden;
  display:grid;
  gap: 10px;
  padding: 10px clamp(20px, 3vw, 30px) 18px;
  background: var(--color-surface-strong);
  border: 1px solid rgba(42,42,42,.35);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  color: var(--color-text-inverse);
}

header.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, transparent 0 60%, rgba(91,60,245,.22) 60% 100%),
    linear-gradient(180deg, transparent 0 54%, rgba(236,90,217,.22) 54% 100%);
  opacity:.82;
  pointer-events:none;
}

header.hero::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:40%;
  height:100%;
  background:linear-gradient(180deg, rgba(211,241,77,.96), rgba(211,241,77,.76));
  clip-path:polygon(0 0, 72% 0, 42% 100%, 0 100%);
  opacity:.95;
  pointer-events:none;
}

header.hero > *{
  position:relative;
  z-index:1;
}

.heroTopbar{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap: 20px;
  flex-wrap:wrap;
  margin-bottom: -8px;
}

.brandMark{
  display:inline-flex;
  align-items:center;
  margin-top: 18px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-decoration:none;
}

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

.brandLogo{
  width:min(100%, 290px);
  height:auto;
  object-fit:contain;
}

.heroGrid{
  display:grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  gap: 18px;
  align-items:end;
}

.heroCopy{
  display:grid;
  gap: 18px;
  padding-top: 0;
  max-width: 640px;
}

.heroMedia{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-height:100%;
  overflow:visible;
  padding-right: 6px;
}

.heroImage{
  width:auto;
  max-width:100%;
  height:340px;
  max-height: 340px;
  margin-right: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit:contain;
}

.kicker{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--color-text-inverse-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .28em;
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background: var(--accent-lime);
  box-shadow: 0 0 0 6px rgba(211,241,77,.14);
}

h1{
  margin:0;
  max-width: 12ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 74px);
  line-height: .96;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.lede{
  margin:0;
  max-width: 62ch;
  color: var(--color-text-inverse-muted);
  font-size: 16px;
  line-height: 1.65;
}

.steps{
  display:flex;
  gap: 14px;
  flex-wrap:wrap;
  margin-top: 4px;
}

.step{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(242,244,209,.14);
  background: rgba(242,244,209,.04);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(242,244,209,.58);
}

.step .num{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(242,244,209,.16);
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(242,244,209,.06);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(242,244,209,.74);
}

.step.active{
  color: var(--color-surface-strong);
  background: var(--accent-lime);
  border-color: rgba(211,241,77,.92);
  box-shadow: 0 14px 30px rgba(211,241,77,.18);
}

.step.active .num{
  border-color: var(--color-surface-strong);
  background: var(--color-surface-strong);
  color: var(--color-text-inverse);
}

.step.done{
  color: var(--color-text-inverse);
  background: rgba(91,60,245,.26);
  border-color: rgba(91,60,245,.48);
}

.step.done .num{
  border-color: var(--color-text-inverse);
  background: var(--color-text-inverse);
  color: var(--accent-purple);
}

.grid{
  display:grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: 20px;
}

.card{
  --card-bg: rgba(255,255,255,.72);
  --card-text: var(--color-text-primary);
  --card-muted: var(--color-text-secondary);
  position:relative;
  overflow:hidden;
  background: var(--card-bg);
  color: var(--card-text);
  border: 1px solid rgba(42,42,42,.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.card::before{
  content:"";
  position:absolute;
  inset:14px;
  border-radius: 20px;
  border: 1px solid rgba(42,42,42,.08);
  pointer-events:none;
}

.previewCard{
  --card-bg: linear-gradient(145deg, rgba(91,60,245,.24), rgba(42,42,42,.98) 38%, rgba(42,42,42,1) 100%);
  --card-text: var(--color-text-inverse);
  --card-muted: var(--color-text-inverse-muted);
}

.previewCard::after{
  content:"";
  position:absolute;
  right:22px;
  bottom:0;
  width:140px;
  height:140px;
  background:linear-gradient(180deg, var(--accent-pink), rgba(236,90,217,0));
  opacity:.22;
  filter:blur(10px);
}

.controlsCard{
  --card-bg: linear-gradient(180deg, rgba(242,244,209,.96), rgba(255,255,255,.76));
}

.controlsCard::after{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:10px;
  background:linear-gradient(90deg, var(--accent-lime) 0 34%, var(--accent-purple) 34% 67%, var(--accent-pink) 67% 100%);
}

.cardHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding: 22px 22px 0;
}

.cardHeader h2{
  margin:0;
  font-size: 12px;
  color: var(--card-muted);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-weight: 800;
}

.pill{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(42,42,42,.14);
  background: rgba(42,42,42,.06);
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.previewCard .pill{
  border-color: rgba(242,244,209,.18);
  background: rgba(242,244,209,.12);
  color: var(--color-text-inverse);
}

.controlsCard .pill{
  border-color: rgba(91,60,245,.16);
  background: rgba(91,60,245,.08);
  color: var(--accent-purple);
}

.stage{
  position:relative;
  padding: 18px 16px 14px;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height: 540px;
}

.previewShell{
  width: min(640px, 100%);
  aspect-ratio: 1/1;
  position:relative;
  overflow:hidden;
  border-radius: 50%;
  background:
    linear-gradient(90deg, var(--accent-lime) 0 58%, transparent 58% 100%),
    linear-gradient(180deg, var(--accent-purple) 0 56%, transparent 56% 100%),
    linear-gradient(180deg, var(--color-surface-strong) 0 48%, var(--color-surface) 48% 100%),
    linear-gradient(180deg, var(--accent-pink) 0 100%, var(--accent-pink) 100%);
  background-size: 100% 100%, 42% 56%, 18% 44%, 24% 44%;
  background-position: left top, right top, 58% 56%, right bottom;
  background-repeat:no-repeat;
  border: 1px solid rgba(242,244,209,.18);
  box-shadow: 0 26px 60px rgba(0,0,0,.4);
}

canvas{
  width:100%;
  height:100%;
  display:block;
  touch-action:none;
}

.safeGuide{
  position:absolute;
  inset: 18%;
  border-radius:50%;
  border: 1px dashed rgba(242,244,209,.28);
  box-shadow: 0 0 0 1px rgba(42,42,42,.1) inset;
  pointer-events:none;
}

.safeGuide::after{
  content:"";
  position:absolute;
  inset: -13%;
  border-radius:50%;
  border: 1px solid rgba(242,244,209,.12);
}

.emptyState{
  position:absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(42,42,42,.08);
  background: rgba(242,244,209,.9);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 12px;
  text-align:center;
  padding: 32px;
  color: var(--color-text-primary);
  box-shadow: inset 0 0 0 12px rgba(255,255,255,.18);
  opacity: 0;
  pointer-events:none;
  transition: opacity .25s ease;
}

.emptyLogo{
  width:min(74%, 300px);
}

.emptyState h3{
  margin:0;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -.02em;
}

.emptyState p{
  max-width: 30ch;
  margin:0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

body[data-state="empty"] .emptyState{
  opacity: 1;
  pointer-events:auto;
}

.hint{
  padding: 0 22px 20px;
  color: var(--card-muted);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 600;
}

.controls{
  padding: 12px 0 18px;
}

.stepBlock{
  padding: 18px 22px;
  border-top: 1px solid rgba(42,42,42,.1);
  display:grid;
  gap: 14px;
}

.stepBlock:first-of-type{ border-top: 0; }

.stepBlock.is-disabled{
  opacity: .45;
  pointer-events:none;
}

.stepTitle{
  display:flex;
  align-items:center;
  gap: 10px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--color-text-primary);
  font-weight: 800;
}

.stepTitle .num{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--accent-purple);
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--accent-purple);
  font-size: 10px;
  color: var(--color-text-inverse);
  letter-spacing: .08em;
}

label{
  display:block;
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.field{
  display:grid;
  gap: 8px;
}

input[type="file"],
select,
input[type="range"]{
  width:100%;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,.66);
  color: var(--color-text-primary);
  border-radius: 16px;
  padding: 13px 14px;
  outline:none;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

select:hover,
input[type="range"]:hover{
  border-color: var(--color-border-strong);
  background: var(--color-surface-alt);
}

input[type="range"]{
  padding: 12px 10px;
  accent-color: var(--accent-purple);
}

.srOnly{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

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

.segmented{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.segmented input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.segmented label{
  margin:0;
  padding: 11px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  text-align:center;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor:pointer;
  color: var(--color-text-primary);
  background: rgba(255,255,255,.62);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.segmented label:hover{
  border-color: rgba(91,60,245,.26);
  box-shadow: 0 8px 18px rgba(91,60,245,.08);
  transform: translateY(-1px);
}

.segmented input:checked + label{
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: var(--color-text-inverse);
  box-shadow: 0 12px 22px rgba(91,60,245,.2);
}

.segmented.two{
  grid-template-columns: repeat(2, 1fr);
}

.segmented.four{
  grid-template-columns: repeat(2, 1fr);
}

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

button,
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,.68);
  color: var(--color-text-primary);
  padding: 12px 18px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(42,42,42,.06);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

button:hover,
.btn:hover{
  transform: translateY(-1px);
  background: var(--color-surface-alt);
  box-shadow: 0 16px 26px rgba(42,42,42,.1);
}

button.primary,
.btn.primary{
  background: var(--accent-lime);
  border-color: rgba(42,42,42,.18);
  color: var(--color-surface-strong);
  box-shadow: 0 16px 30px rgba(211,241,77,.22);
}

button.primary:hover,
.btn.primary:hover{
  background: var(--accent-lime-strong);
  box-shadow: 0 18px 34px rgba(211,241,77,.28);
}

button.ghost{
  background: transparent;
}

button:active,
.btn:active{
  transform: translateY(0);
  background: var(--state-hover);
}

button:disabled{
  opacity:.56;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.exportRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  padding-top: 8px;
}

.downloadLink{
  display:none;
  align-items:center;
  text-decoration:none;
  color: var(--color-text-primary);
  border: 1px solid rgba(236,90,217,.34);
  padding: 11px 15px;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(236,90,217,.16);
  box-shadow: 0 12px 24px rgba(236,90,217,.12);
}

.downloadLink:hover{
  background: rgba(236,90,217,.26);
  border-color: rgba(236,90,217,.45);
}

.microcopy{
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 600;
}

button:focus-visible,
select:focus-visible,
input[type="range"]:focus-visible,
.segmented input:focus-visible + label,
.downloadLink:focus-visible,
.brandMark:focus-visible{
  outline: 3px solid var(--state-focus);
  outline-offset: 3px;
}

.siteFooter{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
  padding: 18px 22px;
  border-radius: 24px;
  background: var(--color-surface-strong);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-soft);
}

.siteFooter p{
  margin:0;
  color: var(--color-text-inverse-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform:uppercase;
}

.footerTagline{
  display:inline-flex;
  align-items:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--accent-lime) 0%, var(--accent-purple) 52%, var(--accent-pink) 100%);
  color: var(--color-surface-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform:uppercase;
}

@media (max-width: 1040px){
  .heroGrid,
  .grid{
    grid-template-columns: 1fr;
  }

  .heroMedia{
    justify-content:flex-start;
    overflow:visible;
    padding-right: 0;
  }

  .heroImage{
    width:min(100%, 520px);
    max-width:100%;
    max-height:none;
    margin-right: 0;
    object-fit:contain;
  }

  .stage{ min-height: 460px; }
}

@media (max-width: 760px){
  .page{
    margin: 18px auto 38px;
    padding: 0 14px;
  }

  .brandLogo{ width:min(100%, 280px); }

  h1{
    max-width: 14ch;
    font-size: clamp(34px, 12vw, 56px);
  }

  .lede{ font-size: 15px; }

  .cardHeader,
  .stage,
  .stepBlock,
  .hint{
    padding-left: 16px;
    padding-right: 16px;
  }

  .stage{ min-height: 380px; }
  .emptyState{ padding: 24px; }
  .grid2{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  body::before{
    background:
      linear-gradient(90deg, rgba(211,241,77,.28) 0 34%, transparent 34% 100%),
      linear-gradient(180deg, transparent 0 12%, rgba(91,60,245,.16) 12% 26%, transparent 26% 100%),
      linear-gradient(180deg, transparent 0 70%, rgba(236,90,217,.12) 70% 100%);
  }

  .steps{ gap: 10px; }

  .step{
    width:100%;
    justify-content:flex-start;
  }

  .segmented,
  .segmented.four{
    grid-template-columns: 1fr;
  }

  .exportRow,
  .siteFooter{
    align-items:flex-start;
  }

  .pill{ white-space:normal; }
}
