.automation-page { margin: 0; background: #fffcfa; }
.automation {
    --ink: #30132c;
    --plum: #490d36;
    --line: #e1d4dd;
    color: var(--ink);
    font: 400 1rem/1.52 "Social Header Inter", Inter, system-ui, sans-serif;
}
.automation *, .automation *::before, .automation *::after { box-sizing: border-box; }
.ag-wrap { width: min(1232px, calc(100% - clamp(36px, 7vw, 112px))); margin-inline: auto; }
.automation :is(h1,h2,h3,p) { margin: 0; }
.automation :is(h1,h2,h3) { text-wrap: balance; }
.automation h1 { font-size: clamp(38px, 4.1vw, 62px); line-height: 1.035; letter-spacing: -.059em; font-weight: 770; }
.automation h2 { font-size: clamp(30px, 3.25vw, 48px); line-height: 1.09; letter-spacing: -.052em; font-weight: 735; }
.automation h3 { font-weight: 710; letter-spacing: -.035em; line-height: 1.15; }
.automation a { color: var(--plum); text-underline-offset: .2em; }
.automation :is(a,button,summary):focus-visible { outline: 3px solid #7946a3; outline-offset: 4px; }
.ag-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ag-icon { font: normal 1em/1 "Social Header Icons"; }
.ag-icon.bike::before { content: "\f18d"; }
.ag-icon.calendar::before { content: "\f214"; }
.ag-icon.calendar-check::before { content: "\f1e2"; }
.ag-icon.repeat::before { content: "\f130"; }
.ag-icon.layers::before { content: "\f45b"; }
.ag-icon.person::before { content: "\f4e1"; }
.ag-icon.stars::before { content: "\f589"; }
.ag-icon.lock::before { content: "\f47b"; }
.ag-icon.check::before { content: "\f26a"; }
.ag-icon.copy::before { content: "\f3c2"; }
.ag-hero {
    background: radial-gradient(ellipse at 83% 58%, #f5e8f5 0, transparent 42%), linear-gradient(120deg,#fff9f5,#fcf4f6);
    border-bottom: 1px solid #f3e8ea;
}
.ag-hero-grid {
    display: grid; grid-template-columns: 1.03fr 1fr; align-items: center;
    gap: clamp(32px, 4vw, 68px); padding-block: clamp(62px, 6vw, 96px);
}
.ag-intro { min-width: 0; }
.ag-intro h1 { max-width: 16ch; margin-bottom: 23px; }
.ag-intro p { max-width: 53ch; font-size: clamp(16px, 1.22vw, 18px); }
.ag-intro p + p { margin-top: 12px; }
.ag-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 26px; }
.automation .ag-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 48px; border: 1px solid var(--plum); border-radius: 10px; padding: 11px 18px;
    background: var(--plum); color: #fff; font: inherit; font-size: 15px; line-height: 1.3;
    font-weight: 660; letter-spacing: -.025em; text-decoration: none; text-align: center; cursor: pointer;
}
.automation .ag-button:hover { background: #66184f; }
.ag-button[hidden] { display: none; }
.ag-jump { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-weight: 630; font-size: 14px; }
.ag-intro small { display: block; margin-top: 10px; color: #64535f; font-size: 13px; }
.ag-calendar-scene { min-width: 0; padding: 36px 7px 30px; }
.ag-calendar-paper { position: relative; isolation: isolate; }
.ag-calendar-face {
    padding: clamp(12px,1.6vw,24px);
    background: linear-gradient(145deg,#fffefd,#fff9fb); border: 1px solid #eee5e9; border-radius: 19px;
    box-shadow: 0 18px 27px -14px #72447980, 0 3px 8px #6a377315;
}
.ag-calendar-paper::before, .ag-calendar-paper::after {
    content: ""; position: absolute; pointer-events: none; z-index: -2; inset: -12px 17px -12px 29px;
    background: linear-gradient(130deg,#eedaf6,#e2cbe9); border-radius: 17px;
    transform: rotate(-5deg); box-shadow: 0 10px 22px #50276f12;
}
.ag-calendar-paper::after { inset: -6px 7px -6px 15px; transform: rotate(-2.4deg); z-index: -1; background: #f4e6f5; }
.ag-calendar { position: relative; width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.ag-cadence {
    position: absolute; z-index: 1; top: 0; left: 9%; transform: translateY(-70%);
    display: flex; align-items: center; gap: 9px; border-radius: 12px; padding: 8px 16px;
    background: linear-gradient(100deg,#ffeacc,#ffd6c5); font-weight: 700; font-size: 14px;
    box-shadow: 0 4px 10px #a1634b22;
}
.ag-day-col { width: 22%; }
.ag-calendar :is(th,td) { border-bottom: 1px solid #eae0e4; padding: 7px; }
.ag-calendar tr > * + * { border-left: 1px solid #eee5e8; }
.ag-calendar tbody tr:last-child > * { border-bottom: 0; }
.ag-calendar thead th { font-size: clamp(14px,1.25vw,18px); letter-spacing: -.035em; line-height: 1.2; padding: 11px 12px 16px; }
.ag-calendar thead strong { font-weight: 750; font-size: 1.17em; }
.ag-calendar tbody th { font-size: clamp(13px,1.15vw,17px); letter-spacing: -.03em; }
.ag-slot {
    display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 62px; padding: 9px;
    font-size: clamp(13px,1.11vw,17px); line-height: 1.27; letter-spacing: -.03em; border-radius: 8px;
}
.ag-booked { background: #e8f2df; color: #213c29; }
.ag-booked i, .ag-confirmed i { color: #327747; }
.ag-occupied { background: repeating-linear-gradient(-49deg,#f5eaf8,#f5eaf8 5px,#f0e3f5 5px,#f0e3f5 7px); border-left: 3px solid #914bb2; }
.ag-proposed { background: #fcf0df; }
.ag-story,.ag-methods { padding-block: clamp(52px,5vw,78px) 0; }
.ag-story h2 { max-width: 31ch; }
.ag-brief {
    position: relative; margin-top: 28px; display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 15px;
    background: linear-gradient(115deg,#fffafb,#fffcfa);
}
.ag-tile { display: grid; place-items: center; width: 80px; height: 72px; flex-shrink: 0; border-radius: 12px; background: radial-gradient(ellipse at 70% 85%,#e7cced,transparent 59%),linear-gradient(135deg,#f7e7ee,#f3e4fa); font-size: 41px; }
.ag-instruction { border-left: 1px solid #cbb4c7; padding-left: 20px; }
.ag-instruction h3,.ag-method h3 { font-size: clamp(20px,1.65vw,24px); }
.ag-instruction p { margin-top: 6px; }
.ag-weeks { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 47px; }
.ag-weeks::before { content: ""; position: absolute; left: calc(25% - 5.5px); right: calc(25% - 5.5px); top: -22px; border-top: 1px solid #b88fb1; }
.ag-week { position: relative; padding: clamp(22px,2.1vw,33px); border: 1px solid #eadfe3; border-radius: 17px; }
.ag-week::before { content: ""; position: absolute; bottom: 100%; left: 50%; height: 22px; border-left: 1px solid #b88fb1; }
.ag-week::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; top: -28px; left: calc(50% - 4.5px); background: #ab72a4; }
.ag-week h3 { font-size: clamp(23px,2vw,29px); margin-bottom: 18px; }
.ag-reply { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; border-radius: 13px; padding: 15px; background: #f5ebf7; }
.ag-reply strong { font-weight: 700; }
.ag-reply p { line-height: 1.42; }
.ag-reply details { margin-top: 5px; }
.ag-reply summary { width: fit-content; cursor: pointer; font-size: 14px; color: #67385f; text-decoration: underline; text-underline-offset: 3px; padding-block: 4px; }
.ag-reply details p { margin-top: 6px; }
.ag-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e8d2ed; font-size: 16px; }
.ag-owner { margin-top: 12px; background: #fbf1e9; }
.ag-owner .ag-avatar { background: #f6ddc8; }
.ag-next { border-left: 3px solid #9351ab; background: #f1e2f3; }
.ag-confirmed { display: flex; align-items: baseline; gap: 7px; padding: 13px 3px 0; color: #336147; font-size: 13px; }
.ag-methods { padding-bottom: clamp(55px,6vw,94px); }
.ag-methods h2 { margin-bottom: 22px; }
.ag-method { display: grid; grid-template-columns: auto 1fr; gap: 27px; align-items: start; padding: 18px 17px; }
.ag-method + .ag-method { border-top: 1px solid var(--line); }
.ag-method > div { padding-left: 24px; border-left: 1px solid #b9a6b5; }
.ag-method h3 + p { margin-top: 4px; }
.ag-method .ag-method-detail { max-width: 88ch; margin-top: 5px; font-size: 15px; color: #56454f; }
.ag-icon.file::before { content: "\f3b9"; }
.ag-icon.toggle::before { content: "\f5d6"; }
.ag-icon.tag::before { content: "\f5b0"; }
.ag-icon.pencil::before { content: "\f4cb"; }
.ag-follow { border-top: 1px solid #dfc8df; padding-block: clamp(34px,4.5vw,68px); }
.ag-follow h2 { max-width: 34ch; margin-bottom: clamp(23px,2.5vw,38px); }
.ag-setup-grid { display: grid; grid-template-columns: 1.2fr .88fr; gap: clamp(30px,5.8vw,90px); align-items: center; }
.ag-guide-row { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 20px; padding-block: 21px; }
.ag-guide-row:first-child { padding-top: 0; }
.ag-guide-row + .ag-guide-row { border-top: 1px solid var(--line); }
.ag-guide-row .ag-tile,.ag-recipe .ag-tile { width: 56px; height: 54px; font-size: 27px; }
.ag-guide-row:nth-of-type(2) .ag-tile,.ag-recipe:nth-child(2) .ag-tile { background: linear-gradient(125deg,#ffead4,#fae1d7); }
.ag-guide-row > div { border-left: 1px solid #c3a8bd; padding-left: 18px; }
.ag-follow h3 { font-size: clamp(20px,1.65vw,25px); }
.ag-guide-row p { max-width: 83ch; margin-top: 7px; }
.ag-assistants { margin-top: 10px; }
.ag-assistants strong { font-size: 15px; }
.ag-connector-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.ag-connector-links a,.ag-support { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; font-weight: 630; }
.ag-connector-links a:last-child { font-weight: 450; font-size: 14px; }
.ag-task-sheet { margin: 24px 8px 22px 0; }
.ag-task-sheet .ag-calendar-face { padding: clamp(24px,2.6vw,40px) clamp(17px,2.1vw,33px) 22px; }
.ag-task-sheet h3 { font-size: clamp(22px,2vw,31px); margin-bottom: 18px; }
.ag-task-sheet dl { margin: 0; }
.ag-task-sheet dl > div { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.3fr); align-items: center; border-top: 1px solid #e8dfe5; padding-block: 8px; gap: 12px; }
.ag-task-sheet dt { font-weight: 650; }
.ag-task-sheet dd { margin: 0; border-radius: 6px; padding: 7px 10px; background: #f3e9f5; }
.ag-task-sheet dl > div:last-child dd { background: #eaf2e1; }
.ag-recipes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.ag-recipe { padding: clamp(20px,2.2vw,32px); background: linear-gradient(140deg,#f1e4f6,#f9f1fb); border: 1px solid #e5cdec; border-radius: 16px; display: grid; grid-template-rows: auto 1fr auto auto; align-content: start; }
.ag-recipe:nth-child(2) { background: linear-gradient(140deg,#fff5ec,#faeee5); border-color: #efdbce; }
.ag-recipe-title { display: flex; gap: 14px; align-items: center; }
.ag-recipe h3 { text-wrap: pretty; }
.ag-recipe blockquote { margin: 18px 0; font-size: clamp(17px,1.3vw,20px); line-height: 1.48; letter-spacing: -.02em; }
.ag-recipe .ag-copy { justify-self: start; grid-column: 1; }
.ag-recipe p { border-top: 1px solid #48213a25; margin-top: 18px; padding-top: 14px; font-size: 15px; color: #594550; }
.ag-sample { display: grid; grid-template-columns: .8fr 1.2fr .62fr; align-items: center; gap: 12px 25px; margin: 8px 0; border: 1px solid #dfcddd; border-radius: 13px; padding: 14px 18px; }
.ag-sample strong,.ag-sample .ag-booked { display: inline-flex; align-items: center; gap: 9px; }
.ag-sample > span:nth-child(2) { padding-inline: 24px; border-inline: 1px solid #cab6c5; }
.ag-sample .ag-booked { justify-self: end; border-radius: 6px; padding: 5px 12px; }
.ag-support { text-underline-offset: .2em; }
.ag-readmore { max-width: 77ch; }
.ag-readmore summary { width: fit-content; min-height: 44px; padding-block: 10px; color: #65345e; font-size: 15px; font-weight: 575; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.ag-readmore p,.ag-recipe .ag-readmore blockquote { margin: 0 0 12px; font-size: 16px; line-height: 1.48; }
@media(max-width: 850px) {
    .ag-setup-grid { grid-template-columns: 1.08fr .85fr; gap: 25px; }
    .ag-guide-row { gap: 12px; }
    .ag-follow .ag-copy { grid-column: 1; }
}
@media(max-width: 700px) {
    .ag-setup-grid,.ag-recipes { grid-template-columns: minmax(0,1fr); }
    .ag-task-sheet { width: min(100%,460px); margin: 10px auto 5px; }
    .ag-guide-row { gap: 12px; padding-block: 15px; }
    .ag-guide-row > div { padding-left: 0; border: 0; }
    .ag-guide-row .ag-tile,.ag-recipe .ag-tile { width: 38px; height: 39px; font-size: 21px; }
    .ag-assistants { margin-top: 5px; }
    .ag-recipes { gap: 14px; }
    .ag-recipe { padding: 17px; }
    .ag-recipe-title { gap: 11px; }
    .ag-recipe blockquote { margin-block: 14px; }
    .ag-sample { grid-template-columns: 1fr; justify-items: start; gap: 6px; }
    .ag-sample .ag-booked { justify-self: start; }
    .ag-sample > span:nth-child(2) { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .ag-calendar-paper::before, .ag-calendar-paper::after { transition: transform .28s ease; }
    .ag-calendar-paper:hover::before { transform: rotate(-6.2deg); }
    .ag-calendar-paper:hover::after { transform: rotate(-3deg); }
}
@media(max-width: 850px) {
    .ag-hero-grid { gap: 20px; }
    .ag-brief { grid-template-columns: auto 1fr; }
    .ag-copy { grid-column: 2; justify-self: start; }
    .ag-calendar :is(th,td) { padding-inline: 4px; }
    .ag-slot { padding: 7px 5px; }
}
@media(max-width: 700px) {
    .ag-hero-grid { grid-template-columns: minmax(0,1fr); gap: 15px; padding-block: 32px 21px; }
    .ag-intro h1 { font-size: clamp(34px,9.65vw,49px); margin-bottom: 15px; max-width: 19ch; }
    .ag-intro p { font-size: 16px; line-height: 1.46; }
    .ag-intro p + p { margin-top: 7px; }
    .ag-actions { margin-top: 18px; gap: 0 14px; }
    .ag-actions .ag-button { width: 100%; }
    .ag-jump { margin-inline: auto; }
    .ag-intro small { text-align: center; margin-top: 0; }
    .ag-calendar-scene { width: min(100%,470px); margin-inline: auto; padding: 26px 5px 13px; }
    .ag-cadence { font-size: 13px; padding: 6px 11px; left: 6%; }
    .ag-calendar thead th { padding-block: 8px; }
    .ag-slot { min-height: 46px; padding: 6px; }
    .ag-story,.ag-methods { padding-top: 38px; }
    .automation h2 { font-size: clamp(27px,7.3vw,36px); line-height: 1.1; }
    .ag-brief { margin-top: 19px; padding: 15px; align-items: start; gap: 11px; }
    .ag-tile { width: 43px; height: 41px; border-radius: 8px; font-size: 24px; }
    .ag-instruction { padding: 0; border: 0; }
    .ag-instruction p { font-size: 15px; line-height: 1.46; }
    .ag-copy { font-size: 14px; }
    .ag-weeks { display: block; margin: 22px 0 0 5px; padding-left: 20px; }
    .ag-weeks::before { inset: 12px auto 0 -1px; border-top: 0; border-left: 1px solid #b88fb1; }
    .ag-week { border: 0; padding: 0; border-radius: 0; }
    .ag-week + .ag-week { margin-top: 24px; }
    .ag-week::before { display: none; }
    .ag-week::after { top: 8px; left: -25px; width: 9px; height: 9px; }
    .ag-week:last-child::before { display: block; position: absolute; inset: 17px auto 0 -22px; width: 3px; height: auto; border: 0; background: #fffcfa; }
    .ag-week h3 { font-size: 22px; margin-bottom: 10px; }
    .ag-reply { padding: 12px; gap: 9px; }
    .ag-reply summary { padding-block: 9px; }
    .ag-methods { padding-bottom: 38px; }
    .ag-methods h2 { margin-bottom: 12px; }
    .ag-method { gap: 12px; padding: 14px 0; }
    .ag-method > div { border: 0; padding: 0; }
    .ag-method h3,.ag-instruction h3 { font-size: 19px; }
}
@media(max-width: 360px) {
    .ag-wrap { width: calc(100% - 28px); }
    .ag-slot { font-size: 12px; }
    .ag-calendar .ag-icon { font-size: 11px; }
}

.ag-faq {
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr);
    align-items: start; gap: clamp(32px, 4.5vw, 72px);
}
.ag-faq h2 { max-width: 14ch; margin: 0; }
.ag-faq-list details { border-bottom: 1px solid var(--line); }
.ag-faq-list summary {
    display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 16px;
    min-height: 54px; padding: 17px 0; list-style: none; cursor: pointer;
}
.ag-faq-list details:first-child > summary { padding-top: 0; }
.ag-faq-list summary::-webkit-details-marker { display: none; }
.ag-faq-list summary::before {
    content: ""; width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(var(--plum),var(--plum)) center / 14px 2px no-repeat,
                linear-gradient(var(--plum),var(--plum)) center / 2px 14px no-repeat, #f0e5f7;
}
.ag-faq-list details[open] > summary::before { background-size: 14px 2px, 0 0; }
.ag-faq-list summary:hover h3 { color: #67235d; }
.ag-faq-list h3 { font-size: clamp(18px, 1.48vw, 22px); line-height: 1.3; text-wrap: pretty; }
.ag-answer { margin: -4px 0 20px 52px; font-size: 16px; line-height: 1.55; max-width: 65ch; }
.ag-answer a { display: inline-block; margin-top: 8px; font-weight: 630; }
.ag-closing {
    margin: 0 clamp(8px,1.4vw,22px) clamp(10px,1.4vw,22px);
    border-radius: clamp(14px,1.5vw,24px); background: linear-gradient(110deg,#f1e4fa,#f8eaf4 55%,#ffecdf);
}
.ag-closing-grid {
    display: grid; grid-template-columns: minmax(0,1.8fr) minmax(195px,.8fr); align-items: center;
    gap: clamp(32px,6vw,90px); padding-block: clamp(38px,5vw,78px);
}
.ag-closing-grid h2 { max-width: 25ch; }
.ag-closing-grid p { max-width: 55ch; margin-top: 16px; font-size: clamp(16px,1.25vw,19px); }
.ag-closing-grid .ag-button { margin-top: 22px; }
.ag-closing-grid small { display: block; margin-top: 8px; font-size: 13px; color: #5e495b; }
.ag-closing-sheet { width: min(100%,255px); justify-self: center; margin-block: 26px 10px; }
.ag-closing-sheet .ag-calendar-face {
    display: flex; flex-direction: column; gap: 6px; padding: 30px 25px 20px;
    position: relative; transform: rotate(3deg);
}
.ag-closing-sheet .ag-cadence { left: 16%; }
.ag-closing-sheet strong { font-size: clamp(46px,4.1vw,66px); line-height: 1; letter-spacing: -.055em; }
.ag-closing-sheet .ag-calendar-face > span:last-child { font-weight: 650; }
.ag-closing-sheet .ag-calendar-face::after {
    content: ""; display: block; margin-top: 12px; height: 10px;
    background: radial-gradient(circle 5px at 5px center,#762e9c 95%,transparent),
                linear-gradient(90deg,#803ba2,#d7b8e1) left center / 98% 2px no-repeat;
}
@media(min-width: 901px) {
    .ag-closing-grid { grid-template-columns: minmax(0,1.65fr) minmax(245px,1fr); }
    .ag-closing-grid .ag-button { min-width: min(100%,365px); min-height: 56px; font-size: 18px; }
    .ag-closing-sheet { width: min(100%,338px); }
    .ag-closing-sheet .ag-calendar-face { gap: 10px; padding: 36px 32px 25px; }
    .ag-closing-sheet .ag-calendar-face > span:last-child { font-size: 20px; }
    .ag-closing-sheet .ag-cadence { font-size: 17px; }
}
@media(max-width: 720px) {
    .ag-faq { grid-template-columns: 1fr; gap: 22px; }
    .ag-faq h2 { max-width: 22ch; }
    .ag-faq-list summary { grid-template-columns: 30px 1fr; gap: 12px; padding-block: 14px; }
    .ag-faq-list summary::before { width: 30px; height: 30px; border-radius: 8px; }
    .ag-answer { margin-left: 42px; }
    .ag-closing-grid { grid-template-columns: 1fr; gap: 20px; padding-block: 32px; }
    .ag-closing-sheet { width: 178px; margin-top: 18px; }
    .ag-closing-sheet .ag-calendar-face { padding: 19px 16px 12px; }
    .ag-closing-sheet .ag-calendar-face > span:last-child { font-size: 14px; }
    .ag-closing-sheet .ag-cadence { font-size: 12px; padding: 5px 12px; }
}
@media(max-width: 480px) {
    .ag-closing-grid .ag-button { width: 100%; }
}
