/* Antigravity landing theme. The logo and guide use the existing components. */
:root {
  --landing-paper: #fff;
  --landing-pattern: url("/assets/tff-pattern.svg");
  --landing-pattern-size: 380px;
}
.site-header, .landing {
  color-scheme: light;
  --ink: #111c21;
  --muted: #4c646d;
  --accent: #0d7488;
  --highlight: #085969;
  --border: #0d748830;
  --glass-edge: #0d748838;
  --control-border: #59919d;
  --surface: #f4fafb;
  --display: Georgia, 'Times New Roman', serif;
  color: var(--ink);
}
.landing {
  position: relative;
  isolation: isolate;
}
.landing::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -180px calc((100% - 100vw) / 2) 0;
  background:
    radial-gradient(ellipse at 50% 44%, #ffffffe6 18%, #ffffff5c 72%, #f2fafc8c 100%),
    var(--landing-pattern) center / var(--landing-pattern-size) repeat,
    var(--landing-paper);
}
.site-header { position: relative; z-index: 1; }
.site-header .location {
  background: linear-gradient(160deg, #fff, #eff8fa);
  border: 1px solid var(--control-border);
  box-shadow: 0 2px 8px #0f566610;
}
.landing /* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  padding-block: 24px;
  border-bottom: 1px solid var(--glass-edge);
  background: transparent;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .08em;
}
.brand-small {
  display: block;
  font: 500 9px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .18em;
}
.location {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 14px;
  border-radius: 30px;
  corner-shape: squircle;
  font-size: 12px;
  color: var(--ink);
}
.location span {
  color: var(--accent);
  margin-right: 6px;
}
.landing /* Typography & Shared Helpers */
.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.landing .tiny-line {
  height: 1px;
  width: 26px;
  background: var(--accent);
  display: inline-block;
}
.location {
  --control-glass: var(--glass-button);
  background-image: var(--glass-sheen), var(--control-glass);
  background-size: 255% 100%, 100% 100%;
  background-position: 100% 0, center;
  background-color: #ffffff;
  border: 1px solid var(--control-border);
  box-shadow: 0 2px 8px #0f566610;
  transition: background-position .52s ease, border-color .2s ease, transform .2s ease;
}
.landing /* Hero & Morning Tiffins */
.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  min-height: 0;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(36px, 5.5vw, 76px);
}
.landing .hero h1 {
  color: var(--ink);
  font-size: clamp(42px, 5.12vw, 76px);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin-block: 19px 21px;
}
.landing .hero h1 em {
  color: var(--accent);
}
.landing .hero-description {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}
.landing .hero-note {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}
.landing .tap-symbol {
  font-size: 22px;
  color: var(--accent);
}
.landing /* Breakfast carousel and serving animation */
.breakfast {
  width: 100%;
  min-width: 0;
  max-width: 590px;
  margin: 0;
  align-self: center;
  justify-self: center;
  text-align: center;
  display: grid;
  gap: 12px;
}
.landing .breakfast h2 {
  margin: 0;
  color: var(--muted);
  font: 500 11px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.landing .breakfast-stage {
  position: relative;
  isolation: isolate;
  clip-path: inset(-12px -100vmax -40px 0);
  aspect-ratio: 1.26;
  margin: 0;
  background: radial-gradient(ellipse at 50% 53%, #0d74881a, #e6f5f877 38%, transparent 70%);
}
.landing .breakfast-stage.is-sliding {
  clip-path: inset(-12px 0 -40px 0);
}
.landing /* Connections & Delivery Channels */
.connections {
  padding-block: 0 42px;
  border-bottom: 1px solid var(--border);
}
.landing .section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.landing .section-top h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(13px, 2.2vw, 16px);
  font-weight: 800;
  letter-spacing: .14em;
  margin: 0;
}
.landing .section-top > span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2px;
}
.landing .link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, auto));
  column-gap: clamp(22px, 4vw, 46px);
  row-gap: 0;
}
.landing .link-card {
  min-width: 0;
  min-height: 76px;
  text-align: left;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) max-content;
  grid-template-areas:
    "icon label arrow"
    "icon status arrow";
  column-gap: 13px;
  row-gap: 1px;
  align-items: center;
  padding: 11px 2px;
  background: transparent;
  background-image: none;
  border: 0;
  border-bottom: 1px solid var(--glass-edge);
  border-radius: 0;
  box-shadow: none;
}
.landing .card-icon {
  grid-area: icon;
  font-size: 24px;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
}
.landing .card-label {
  grid-area: label;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.35;
}
.landing .card-label > span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 2px;
}
.landing .card-arrow {
  grid-area: arrow;
  align-self: center;
  justify-self: end;
  font-size: 18px;
  color: var(--accent);
}
.landing .availability {
  grid-area: status;
  margin: 0;
  align-self: start;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--muted);
}
.landing .link-card[data-destination="menu"] {
  grid-row: 1 / -1;
  min-height: 218px;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-areas:
    "icon arrow"
    "label label"
    "status status";
  align-content: space-between;
  --card-padding: clamp(17px, 2.5vw, 30px);
  padding: var(--card-padding);
  color: var(--ink);
  background:
    linear-gradient(90deg, #ffffff 8%, #fffffff2 36%, #ffffffad 66%, #ffffff26),
    url("/assets/menu/masala-dosa.webp") right center / auto 145% no-repeat,
    var(--surface);
  border: 1px solid var(--control-border);
  border-radius: var(--card-radius);
  corner-shape: squircle;
  box-shadow: 0 12px 28px #0f566614;
}
.landing .link-card[data-destination="menu"] .card-arrow {
  width: 34px;
  height: 34px;
  border-radius: calc(var(--card-radius) - var(--card-padding));
  corner-shape: squircle;
  display: grid;
  place-items: center;
  background: #ffffffeb;
  border: 1px solid var(--control-border);
  color: var(--highlight);
  font-size: 18px;
  box-shadow: 0 2px 10px #0f56661a;
}
.landing .link-card[data-destination="menu"] .card-label {
  font: 400 clamp(32px, 4vw, 52px)/1.05 var(--display);
  letter-spacing: -.035em;
}
.landing .link-card[data-destination="menu"] .card-label > span {
  color: var(--muted);
  font: 400 13px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  margin-top: 5px;
}
.landing .link-card[data-destination="menu"] .availability {
  justify-self: start;
  background: var(--accent);
  color: #ffffff;
  border-radius: calc(var(--card-radius) - var(--card-padding));
  corner-shape: squircle;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
}
.landing .loyalty-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 16px;
}

@media (max-width: 820px) {
.landing .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-block: 25px 22px;
}
.landing .hero h1 {
    font-size: clamp(34px, 10.5vw, 66px);
    margin-block: 13px;
}
.landing .hero-description {
    font-size: 13px;
}
.landing .hero-note {
    margin-top: 7px;
}
.landing .breakfast {
    margin: 0;
}
.landing .breakfast-stage {
    aspect-ratio: 1.32;
}
.landing .section-top {
    margin-bottom: 12px;
}
.landing .link-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
}
.landing .link-card[data-destination="menu"] {
    grid-row: auto;
    min-height: 164px;
    margin-bottom: 5px;
}
}

@media (max-width: 700px) {
.landing .hero {
    gap: 14px;
    padding-block: 18px 16px;
}
.landing .hero:has(.breakfast) {
    overflow: hidden;
    overflow-x: clip;
}
.landing .breakfast {
    margin: 0 auto 6px;
}
.landing .breakfast-stage {
    clip-path: inset(-12px 0 -40px 0);
}
.site-header {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 18px 0;
}
.brand {
    font-size: clamp(13px, 3.8vw, 15px);
    letter-spacing: clamp(1.2px, .5vw, 2.4px);
    gap: 10px;
    min-width: 0;
}
.brand-small {
    font-size: clamp(7px, 2.1vw, 8.5px);
    letter-spacing: clamp(1px, .4vw, 1.6px);
}
.location {
    font-size: 11px;
    padding: 6px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}
.landing .section-top > span {
    display: none;
}
.landing .section-top h2 {
    font-size: clamp(14px, 3.8vw, 16px);
}
}

@media (max-width: 450px) {
.site-header {
    padding-block: 13px;
}
.brand {
    gap: 9px;
    font-size: 14px;
}
.brand-small {
    font-size: 8px;
}
.location {
    padding-inline: 10px;
}
.location span {
    margin-right: 4px;
}
.landing .hero .eyebrow {
    gap: 7px;
    letter-spacing: .075em;
    font-size: 9px;
}
.landing .hero .tiny-line {
    width: 17px;
}
.landing .link-card:not([data-destination="menu"]) {
    grid-template-columns: 24px minmax(0, 1fr) max-content;
    column-gap: 11px;
}
.landing .card-label {
    font-size: 15px;
}
}

@media (max-width: 380px) {
.site-header {
    gap: 8px;
}
.landing .link-card:not([data-destination="menu"]) {
    padding: 11px 2px;
    column-gap: 10px;
}
.landing .link-card[data-destination="menu"] {
    padding: 16px;
}
.landing .card-label {
    font-size: 14px;
}
}

@media (hover: hover) and (pointer: fine) {
.location:hover {
    background-position: 0 0, center;
    border-color: var(--accent);
    color: var(--highlight);
}
.location:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.landing .link-card:not([data-destination="menu"]):hover {
    background: transparent;
    color: var(--highlight);
    border-color: var(--accent);
}
.landing .link-card[data-destination="menu"]:hover {
    border-color: var(--accent);
    color: var(--ink);
}
}
.landing .hero h1, .landing .hero h1 em { background: none; }
.landing .hero h1, .landing .card-label, .site-header .brand { text-shadow: none; }
.landing .hero h1 { font-family: var(--display); }
.landing .hero h1 em { color: var(--accent); }

/* Keep the original mark legible over the lighter header. */
.site-header .brand-mark { background-color: #17334e; }
.landing .hero-description, .landing .section-top h2 { text-shadow: none; }
.guide-controls button {
  background: #142544d9;
  border-color: #c6dcfa55;
  color: #fff;
}

.landing .breakfast-stage {
  background: transparent;
}

.landing .link-card[data-destination="menu"] {
  box-shadow: 0 15px 34px #07596829, inset 0 1px 0 #ffffffd9;
}

/* Continue the restaurant palette into the review section. */
.review-section {
  --ink: #102b32;
  --muted: #3f5e66;
  --accent: #076c7d;
  --border: #12758840;
  --glass-edge: #12758848;
  --glass-button: linear-gradient(150deg, #fff, #dff5f6);
  --glass-sheen: linear-gradient(110deg, transparent 36%, #fff9 50%, transparent 64%);
  position: relative;
  isolation: isolate;
  color-scheme: light;
  color: var(--ink);
  padding-bottom: clamp(104px, 14vw, 150px);
}

.review-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0 calc((100% - 100vw) / 2);
  background:
    radial-gradient(ellipse at 0 8%, #70d3d999, transparent 55%),
    radial-gradient(ellipse at 97% 88%, #53c8d15e, transparent 55%),
    linear-gradient(155deg, #fff9ec80, #ecfeff80),
    url("/assets/tff-pattern.svg") center / 320px repeat,
    #e7f8f8;
}

.review-section .review-intro h2,
.review-section .review-intro h2 em {
  font: 400 clamp(2.75rem, 6.5vw, 5.4rem)/.94 Georgia, serif;
  letter-spacing: -.06em;
  background: none;
  text-shadow: none;
}

.review-section .review-intro h2 em {
  color: var(--accent);
  font-style: italic;
}

.review-section .steps li > span,
.review-section .panel-icon {
  color: #065b69;
  background: #d9f7f7;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 #fff;
}

.review-section .panel-icon {
  display: grid;
  place-items: center;
  border-radius: var(--panel-content-radius);
  corner-shape: squircle;
  width: 42px;
  height: 42px;
  flex: none;
}

.review-section .review-panel {
  background: linear-gradient(150deg, #fff 8%, #fcfffeee 64%, #e6faf9f2);
  border: 1px solid #0d748850;
  border-top: 4px solid #0c8c9d;
  box-shadow: 0 16px 42px #0b5d6d22, inset 0 1px 0 #fff;
}

.review-section .panel-header h3,
.review-section .draft-heading h3 { text-shadow: none; }

.review-section :is(.dish-toggle, .secondary, .text-link, .categories label > span) {
  color: var(--ink);
  background-color: #f1fdfd;
  border-color: var(--border);
}

.review-section :is(.categories input:checked + span, .dish-toggle.has-dish) {
  background: #c8f0ef;
  border-color: #0c7f8f;
  color: #064c57;
}

.review-section :is(.button.primary, .button.primary:hover:not(:disabled)) {
  color: white;
  background: linear-gradient(155deg, #0d7b89, #065261);
  border-color: #086877;
  box-shadow: inset 0 1px 0 #a3f3ef80, 0 5px 16px #0764782b;
}

.review-section :is(#dish, #draft) {
  background: #f5fcfc;
  color: var(--ink);
  border-color: var(--border);
  box-shadow: inset 0 2px 5px #07596813;
}

.review-section :is(#dish, #draft)::placeholder { color: var(--muted); }
.review-section :is(.beta-label, #mode-label) { color: var(--accent); }

@media (max-width: 700px) {
  .review-section { padding-bottom: calc(176px + env(safe-area-inset-bottom)); }
}

/* A moving reflection along the outside edge of each destination card. */
@property --card-reflection-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.landing .link-grid { gap: 12px clamp(14px, 2vw, 24px); }

.landing .link-card {
  position: relative;
  border: 1px solid #7daab77a;
  --card-radius: 22px;
  border-radius: var(--card-radius);
  corner-shape: squircle;
  box-shadow: inset 0 1px 0 #fff, 0 8px 22px #164f6014;
}

.landing .link-card:not([data-destination="menu"]) {
  padding: 14px clamp(12px, 2vw, 20px);
  background: linear-gradient(145deg, #fffffff5, #edf9fbdc 62%, #e9f4f6dc);
}

.landing .link-card[data-destination="menu"] {
  --card-radius: max(24px, calc(var(--card-padding) + 8px));
  border-radius: var(--card-radius);
  corner-shape: squircle;
  border-color: #7daab7a0;
  box-shadow: inset 0 1px 0 #fff, 0 12px 26px #164f6022;
}

@supports (mask-composite: exclude) {
  .landing .link-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    padding: 2px;
    border-radius: calc(var(--card-radius) + 1px);
    corner-shape: squircle;
    pointer-events: none;
    background: conic-gradient(from var(--card-reflection-angle), transparent 0 66%, #527e8d25 73%, #527e8d 85%, #bed6db 91%, #fff 93%, #527e8d 96%, transparent);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
  }

  @media (prefers-reduced-motion: no-preference) {
    .landing .link-card::after { animation: card-edge-reflection 7.2s linear infinite; }
    .landing .link-card:nth-child(2)::after { animation-delay: -1.8s; }
    .landing .link-card:nth-child(3)::after { animation-delay: -3.6s; }
    .landing .link-card:nth-child(4)::after { animation-delay: -5.4s; }
  }

  @keyframes card-edge-reflection {
    to { --card-reflection-angle: 360deg; }
  }
}

@media (hover: hover) and (pointer: fine) {
  .landing .link-card:not([data-destination="menu"]):hover {
    background: linear-gradient(145deg, #fff, #e9f5f8);
    box-shadow: inset 0 1px 0 #fff, 0 10px 22px #164f601a;
  }
}

.review-film {
  position: relative;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: var(--panel-content-radius);
  corner-shape: squircle;
  background: #f5fcfc;
}

.review-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #164754;
}

.review-film-logo {
  position: absolute;
  left: 90.6%;
  top: 83.5%;
  width: 8.5%;
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  corner-shape: squircle;
  background: #0d7488;
  box-shadow: 0 1px 5px #0005;
  pointer-events: none;
}

/* Let the white tabletop pixels blend with the landing artwork. */
.landing { container-type: inline-size; }
.landing .hero:has(.breakfast-dosa-film:not([inert])) { overflow: visible; }
.landing .hero-copy { position: relative; z-index: 1; }
.landing .breakfast-stage:has(.breakfast-dosa-film:not([inert])) {
  isolation: auto;
  clip-path: none;
}

.landing .breakfast-dosa-film {
  mix-blend-mode: multiply;
}

.landing .breakfast-dosa-film :is(img, video) {
  /* The dosa rim occupies 21% of the video. Match the other plates at 63% of the stage. */
  width: 298%;
  height: auto;
  aspect-ratio: 1920 / 1224;
  transform: translate(-50%, -44.117647%);
  filter: none;
}

.landing .breakfast:has(.breakfast-dosa-film[inert]) {
  mix-blend-mode: multiply;
}

@media (min-width: 821px) {
  .landing .breakfast:has(.breakfast-dosa-film:not([inert])) { justify-self: end; }
  .landing .breakfast:has(.breakfast-dosa-film[inert]) {
    transform: translateX(max(0px, calc((100vw - 100cqw) / 2 - 6.5%)));
  }
}

/* The serving shot starts empty. Show the still when the clip finishes or fails. */
@media (prefers-reduced-motion: no-preference) {
  .landing .breakfast-dosa-film:has(video:not([data-finished])) > img {
    visibility: hidden;
  }
}
